Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

always use full paths when starting scripts

  • Loading branch information...
commit 727472cc23b0b5a3f1b2cc96ac55d44714f61173 1 parent 6ee6f9a
@aMoniker authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/forever/cli.js
View
4 lib/forever/cli.js
@@ -221,7 +221,7 @@ app.cmd('cleanlogs', cli.cleanLogs = function () {
// process.
//
app.cmd(/start (.+)/, cli.startDaemon = function () {
- var file = app.argv._[1],
+ var file = process.env.PWD + '/' + app.argv._[1].replace(/^.+\//, ''),
options = getOptions(file);
forever.log.info('Forever processing file: ' + file.grey);
@@ -492,7 +492,7 @@ app.cmd('help', cli.help = function () {
// make executing other commands possible.
//
cli.run = function () {
- var file = app.argv._[0],
+ var file = process.env.PWD + '/' + app.argv._[0].replace(/^.+\//, ''),
options = getOptions(file);
tryStart(file, options, function () {
Please sign in to comment.
Something went wrong with that request. Please try again.