Skip to content

Commit

Permalink
forever log file name changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyabo committed Jun 22, 2012
1 parent 2e0f10f commit c39d452
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{spawn, exec} = require 'child_process'
path = require 'path'

app = "emotions"
mainfile = "emotions.coffee"


Expand All @@ -9,7 +10,7 @@ option '-e', '--environment [ENVIRONMENT_NAME]', 'set the environment for `resta
task 'build', ->


task 'restart', 'Restart emotions.coffee', (options) ->
task 'restart', 'Restart #{app}', (options) ->
invoke 'build'
run 'PATH=/usr/bin:/usr/local/bin && kill -9 `pgrep -f "coffee '+mainfile+'"`'
run "coffee #{mainfile}"
Expand All @@ -24,9 +25,9 @@ forever = (action, options) ->
run "NODE_ENV=#{options.environment} " +
"#{foreverBinary} #{action} -c coffee " +
" --sourceDir ./" +
" -l aiddata.log "+
#" -o logs/aiddata.out "+
#" -e logs/aiddata.err "+
" -l #{app}.log "+
#" -o logs/#{app}.out "+
#" -e logs/#{app}.err "+
" -a" + # append logs
" #{mainfile}"

Expand Down

0 comments on commit c39d452

Please sign in to comment.