summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-10 13:41:09 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-10 13:41:09 +0200
commit593717b42da7f035cf1dbcb0c8af206a88123299 (patch)
tree5807d8f85d95949fafa28ae8f8a566d582de1e4f
parent98830751e669293bc6a210faa97901b62432fb83 (diff)
readme
-rw-r--r--.env-sample2
-rw-r--r--.sample-env9
-rw-r--r--README5
3 files changed, 3 insertions, 13 deletions
diff --git a/.env-sample b/.env-sample
index 9f490f1..3d50c68 100644
--- a/.env-sample
+++ b/.env-sample
@@ -6,4 +6,4 @@ HOST_NAME=lvh.me
S3_KEY=
S3_SECRET=
S3_BUCKET=
-
+SESSIONS_IN_MEMORY=yes
diff --git a/.sample-env b/.sample-env
deleted file mode 100644
index 7d0eae9..0000000
--- a/.sample-env
+++ /dev/null
@@ -1,9 +0,0 @@
-DB_HOST=localhost
-DB_NAME=bucky3
-DB_USER=carbon
-DB_PASS=argon
-HOST_NAME=5.k
-PORT=5858
-S3_KEY=
-S3_SECRET=
-S3_BUCKET=
diff --git a/README b/README
index 2bf7071..a560478 100644
--- a/README
+++ b/README
@@ -7,7 +7,6 @@
```
npm install
brew install mysql (used for main database)
-brew install mongodb (used for sessions)
```
### MySQL
@@ -30,7 +29,7 @@ mysql -u carbon -p bucky < bucky-20150903.sql
### MongoDB
-Mongo is only used for session management and will ideally be replaced.
+MongoDB is used in production as session store, but another session middleware can be substituted (it would be nice to not use Mongo). By default `SESSIONS_IN_MEMORY=yes` in the .env will use the default memorystore from Express, but this is not ideal for something accessible publicly on the open internet.
### Berkeley DB
@@ -52,6 +51,6 @@ You may have to include the .so files for bdb: `export LD_LIBRARY_PATH=/var/www/
npm start
```
-Server will be running at http://lvh.me:5000/
+Server will be running at http://lvh.me:5000/ (or whatever port you set in the .env)