Skip to content

Commit

Permalink
Better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
gja committed Nov 10, 2017
1 parent ee8c94f commit ce54780
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions config/publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ asset_host: http://localhost:8080
sketches_host: http://sketches.quintype.com
host_to_api_host:
help.lvh.me: http://help.quintype.com
host_to_automatic_api_host:
- "-web"
- ".malibu"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"quintype-backend": "^0.3.0",
"quintype-js": "^0.1.6",
"quintype-seo-node": "^0.1.6",
"quintype-toddy-libs": "^0.6.0",
"quintype-toddy-libs": "^0.6.1",
"react": "^15.6.1",
"sleep-promise": "^2.0.0",
"superagent": "^3.5.2",
Expand Down
5 changes: 3 additions & 2 deletions start.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ if(cluster.isMaster) {
} else {
require('node-jsx').install();
var startApp = require("./app/server/server.js");
startApp().catch(function() {
startApp().catch(function(e) {
var sleep = require("sleep-promise");
console.log("Worker died - Aborting");
console.error("Worker died - Aborting");
console.error(e.stack);
return new Promise((resolve) => resolve(cluster.worker.disconnect()))
.then(() => sleep(250))
.then(() => process.exit());
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4010,9 +4010,9 @@ quintype-seo-node@^0.1.6:
dependencies:
lodash "^4.16.4"

quintype-toddy-libs@^0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/quintype-toddy-libs/-/quintype-toddy-libs-0.6.0.tgz#ebb8ef907790c385248d47aae9879953a26c410e"
quintype-toddy-libs@^0.6.1:
version "0.6.1"
resolved "https://registry.yarnpkg.com/quintype-toddy-libs/-/quintype-toddy-libs-0.6.1.tgz#e5f68e06eb7da560cd83a71055282c501c01a194"
dependencies:
atob "^2.0.3"
classnames "^2.2.5"
Expand Down

0 comments on commit ce54780

Please sign in to comment.