From 593717b42da7f035cf1dbcb0c8af206a88123299 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 10 May 2018 13:41:09 +0200 Subject: readme --- .env-sample | 2 +- .sample-env | 9 --------- README | 5 ++--- 3 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 .sample-env 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) -- cgit v1.2.3-70-g09d2