Absolute logpath for magent

This commit is contained in:
Raphael 2010-11-26 00:56:56 -05:00
parent 417301088f
commit 78fb5fec73

View file

@ -43,7 +43,7 @@ execute "executable" do
end
execute "magent run" do
command "mkdir -p /service/magent && echo '#!/bin/sh' > /service/magent/run && echo 'cd /usr/local/app/diaspora && RAILS_ENV=production exec /usr/local/bin/bundle exec /usr/local/bin/magent start --log-path=log/' >> /service/magent/run"
command "mkdir -p /service/magent && echo '#!/bin/sh' > /service/magent/run && echo 'cd /usr/local/app/diaspora && RAILS_ENV=production exec /usr/local/bin/bundle exec /usr/local/bin/magent start --log-path=/usr/local/app/diaspora/log/' >> /service/magent/run"
end
execute "executable" do
command "chmod -R 755 /service/magent"