summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-06-22 02:00:33 +0200
committerJules Laplace <julescarbon@gmail.com>2017-06-22 02:00:33 +0200
commitb12473e7e1b1e355163e421911052a3dbbd36486 (patch)
treea920a7d4eef668a647ff880e1d469e33608f15b3
parent65411b658867dd27a7c1ba38081176c3d6622558 (diff)
readme
-rw-r--r--README.md42
1 files changed, 42 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e4d38e5
--- /dev/null
+++ b/README.md
@@ -0,0 +1,42 @@
+# pepper-paintings
+
+### Install everything
+
+```
+npm install
+npm install -g webpack-cli
+scp web@giraffe.life:pepper-paintings/.env .
+```
+
+Change `OK_PRODUCTION` to false in the `.env`
+
+
+### Run the CMS
+
+```
+node index
+```
+
+Using the `.env` above, the CMS will run on http://lvh.me:6555/
+
+
+### Watch for changes
+
+```
+webpack
+```
+
+This will build the file `public/bundle.js`
+
+To build for production, do `webpack -p`, which will build and minify the bundle. Please do this before pushing a new revision of the site.
+
+
+### On the server
+
+I use `pm2` to manage my node projects on the server:
+
+```
+pm2 list
+pm2 info pepper
+pm2 restart pepper
+```