Skip to content
Browse files

Added NPM Rebuild Step!

  • Loading branch information...
1 parent 9107ca7 commit cf8c09ddc78158d400215d560e5fe1bdd0ce5eb8 @jackhq committed Jan 13, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 staging/lib/vcap/staging/plugin/node/plugin.rb
View
5 staging/lib/vcap/staging/plugin/node/plugin.rb
@@ -21,7 +21,10 @@ def start_command
private
def startup_script
vars = environment_hash
- generate_startup_script(vars)
+ generate_startup_script(vars) do
+ cmds = ['cd app && npm rebuild >>../logs/npm.log 2>> ../logs/npm.log && cd ..;']
+ cmds.join('\n')
+ end
end
# TODO - I'm fairly sure this problem of 'no standard startup command' is

0 comments on commit cf8c09d

Please sign in to comment.
Something went wrong with that request. Please try again.