Navigation Menu

Skip to content

Commit

Permalink
Run "npm install" as the user for http-server
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 21, 2014
1 parent 6e2d1be commit 270cbdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions droonga/attributes/default.rb
@@ -1,3 +1,5 @@
nodejs["npm"] = "1.4.7"

default.droonga.engine.user_name = "droonga-engine"
default.droonga.engine.group_name = "droonga-engine"
default.droonga.engine.home = "/home/droonga-engine"
Expand Down
2 changes: 1 addition & 1 deletion droonga/recipes/http-server.rb
Expand Up @@ -54,7 +54,7 @@
action :deploy

migrate true
migration_command "npm install"
migration_command "su -c '#{user_name}' 'npm install'"

before_migrate do
log_dir = "#{new_resource.shared_path}/log"
Expand Down

0 comments on commit 270cbdb

Please sign in to comment.