Skip to content

Commit

Permalink
fix deploy to cope github
Browse files Browse the repository at this point in the history
renamed start-server.js into start-nariya.js
  • Loading branch information
arunoda committed Oct 16, 2011
1 parent c0a21bd commit 7dc3c93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bin/nariya.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if(action == 'start') {
var configurationManager = new ConfigurationManager(nariyaConfFile);
configurationManager.updateSync();

var stopCommand = 'forever stop start-server.js';
var stopCommand = 'forever stop start-nariya.js';
exec(stopCommand, { cwd: nariyaLibs }, function(err) {

if(!err) {
Expand Down Expand Up @@ -108,8 +108,9 @@ if(action == 'start') {
console.log('\t' + uri);

rest.post(uri, {
data: '{"ref": "refs/heads/master"}',
headers: {"Content-Type": 'application/json'}
data: {
payload: '{"ref": "refs/heads/master"}'
}
}).on('complete', function() {
console.log('+ Project Deployment started'.green.bold);
}).on('error', function(err) {
Expand Down Expand Up @@ -168,10 +169,10 @@ function startNariya() {
var configurationManager = new ConfigurationManager(nariyaConfFile);
configurationManager.updateSync();

var startCommand = 'forever stop start-server.js && SL_NAME=nariya NODE_ENV=production forever start ';
var startCommand = 'forever stop start-nariya.js && SL_NAME=nariya NODE_ENV=production forever start ';
startCommand += '-o ' + nariyaLog + ' ';
startCommand += '-e ' + nariyaErrorLog + ' ';
startCommand += 'start-server.js';
startCommand += 'start-nariya.js';

exec(startCommand, { cwd: nariyaLibs }, function(err) {

Expand Down
File renamed without changes.

0 comments on commit 7dc3c93

Please sign in to comment.