From cc515695a8aaab94395e04012e7d81d09d9f2311 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Thu, 29 Dec 2016 13:10:32 -0500 Subject: [PATCH] fix minor: diff colors, readme, port logging --- README.md | 7 ++++++- dist/main.css | 8 ++++++++ package.json | 1 + src/server/index.js | 2 +- 4 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ece0721..1f5e201 100644 --- a/README.md +++ b/README.md @@ -62,8 +62,13 @@ On a low-memory machine, eg. a DigitalOcean 512MB instance, you will need to ena To make the application start on boot, run the following: - pm2 start npm --name dubdiff -- run serve:prod + # initialize pm2 to start on boot with the systemd boot manager pm2 startup systemd + + # start the app with pm2 + pm2 start npm --name dubdiff -- run serve:prod + + # save the current pm2 config so that it can be reloaded on boot pm2 save [Digital Ocean: How To Set Up a Node.js Application for Production on Ubuntu 16.04](https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-16-04) \ No newline at end of file diff --git a/dist/main.css b/dist/main.css index 22e095b..cd107d1 100644 --- a/dist/main.css +++ b/dist/main.css @@ -1,3 +1,11 @@ #masthead .header { font-size: 4em; } + +ins { + background-color: #dbffdb; +} + +del { + background-color: #ffdddd; +} diff --git a/package.json b/package.json index f840fca..17e427a 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "babel-register": "^6.18.0", "chai": "^3.5.0", "copyfiles": "^0.2.2", + "cpy-cli": "^1.0.1", "cross-env": "^3.1.3", "json-loader": "^0.5.4", "mocha": "^3.2.0", diff --git a/src/server/index.js b/src/server/index.js index 4ca968d..785a0d8 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -65,7 +65,7 @@ app.route('/') app.listen(PORT, function () { - console.log('Server listening on port 8080.') + console.log(`Server listening on port ${PORT}.`) })