diff options
| -rw-r--r-- | .env-sample | 2 | ||||
| -rw-r--r-- | .sample-env | 9 | ||||
| -rw-r--r-- | README | 5 |
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= @@ -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) |
