mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 07:18:38 +00:00
switch forever/server.js roles
This commit is contained in:
parent
95fbf0b6ea
commit
b3d85680e4
3 changed files with 12 additions and 15 deletions
11
forever.js
11
forever.js
|
|
@ -1,8 +1,5 @@
|
|||
var forever = require('forever-monitor');
|
||||
var child = new (forever.Monitor)('server.js');
|
||||
require('coffee-script') // remove intermediate compilation requirement
|
||||
require('./src/server').listen(process.env.PORT || 3000);
|
||||
|
||||
child.on('exit', function () {
|
||||
console.log('server.js has exited after 10 restarts');
|
||||
});
|
||||
|
||||
child.start();
|
||||
// Note: removed "up" module, which is default for development (but interferes with and production + PaaS)
|
||||
// Restore to 5310bb0 if I want it back (see https://github.com/codeparty/derby/issues/165#issuecomment-10405693)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "habitrpg",
|
||||
"description": "A habit tracker app which treats your goals like a Role Playing Game.",
|
||||
"version": "0.0.0-146",
|
||||
"main": "./forever.js",
|
||||
"main": "./server.js",
|
||||
"dependencies": {
|
||||
"derby": "git://github.com/codeparty/derby#master",
|
||||
"racer": "git://github.com/codeparty/racer#master",
|
||||
|
|
@ -30,9 +30,6 @@
|
|||
"habitrpg.com",
|
||||
"www.habitrpg.com"
|
||||
],
|
||||
"scripts": {
|
||||
"start": "node forever.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": "0.8.x",
|
||||
"npm": "1.1.x"
|
||||
|
|
|
|||
11
server.js
11
server.js
|
|
@ -1,5 +1,8 @@
|
|||
require('coffee-script') // remove intermediate compilation requirement
|
||||
require('./src/server').listen(process.env.PORT || 3000);
|
||||
var forever = require('forever-monitor');
|
||||
var child = new (forever.Monitor)('forever.js');
|
||||
|
||||
// Note: removed "up" module, which is default for development (but interferes with and production + PaaS)
|
||||
// Restore to 5310bb0 if I want it back (see https://github.com/codeparty/derby/issues/165#issuecomment-10405693)
|
||||
child.on('exit', function () {
|
||||
console.log('server.js has exited after 10 restarts');
|
||||
});
|
||||
|
||||
child.start();
|
||||
|
|
|
|||
Loading…
Reference in a new issue