summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-12 00:20:59 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-12 00:20:59 +0200
commit2efd22d3b7a05e2345b58e82c5cb34b73fa04fb8 (patch)
tree54038acb083c6387ccd224307d2300d6b50748bf
parent20b98e565e704ab27d8745a8dcc852b4ee3effc4 (diff)
parentf4e7211970b50577c1a3ffc71c25399742350957 (diff)
Merge branch 'master' of ghghgh.us:bucky3
-rw-r--r--.env-sample2
-rw-r--r--README4
2 files changed, 6 insertions, 0 deletions
diff --git a/.env-sample b/.env-sample
index a28030c..f9e6bbc 100644
--- a/.env-sample
+++ b/.env-sample
@@ -8,3 +8,5 @@ S3_SECRET=
S3_BUCKET=
S3_PATH=/bucky
SESSIONS_IN_MEMORY=yes
+NODE_ENV=development
+
diff --git a/README b/README
index d1d5fdf..4ff2261 100644
--- a/README
+++ b/README
@@ -55,5 +55,9 @@ npm start
Server will be running at http://localhost:5000/ aka http://lvh.me:5000/ (or whatever port you set in the .env)
+### Produciton
+
In production I use something to daemonize the node server, such as pm2 (provides nice dashboard with uptime, restarts, saves logs, etc).
+In .env, set `NODE_ENV=production` :)
+