Finish daemontools lines for resque
This commit is contained in:
parent
cee5e4c26e
commit
952888713f
2 changed files with 21 additions and 1 deletions
|
|
@ -65,8 +65,17 @@ execute "executable" do
|
|||
end
|
||||
|
||||
execute "resque worker run" do
|
||||
command "mkdir -p /service/resque_worker && echo '#!/bin/sh' > /service/resque_worker/run && echo 'cd /usr/local/app/diaspora && RAILS_ENV=production QUEUE=* exec /usr/local/bin/bundle exec /usr/local/bin/rake resque:work' >> /service/resque_worker/run"
|
||||
command "mkdir -p /service/resque_worker && echo '#!/bin/sh' > /service/resque_worker/run && echo 'RAILS_ENV=production QUEUE=* HOME=/usr/local/app/diaspora exec /usr/local/bin/rake resque:work' >> /service/resque_worker/run"
|
||||
end
|
||||
|
||||
execute "executable" do
|
||||
command "chmod -R 755 /service/resque_worker"
|
||||
end
|
||||
|
||||
execute "resque web run" do
|
||||
command "mkdir -p /service/resque_web && echo '#!/bin/sh' > /service/resque_web/run && echo 'exec resque-web' >> /service/resque_worker/run"
|
||||
end
|
||||
|
||||
execute "executable" do
|
||||
command "chmod -R 755 /service/resque_web"
|
||||
end
|
||||
|
|
|
|||
|
|
@ -87,6 +87,17 @@ http {
|
|||
break;
|
||||
}
|
||||
}
|
||||
server {
|
||||
|
||||
listen 443;
|
||||
server_name <%= @url %> resque.<%= @url %>;
|
||||
|
||||
ssl on;
|
||||
ssl_certificate <%= @cert_location %>;
|
||||
ssl_certificate_key <%= @key_location %>;
|
||||
|
||||
proxy_pass localhost:5678
|
||||
}
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
|
|
|
|||
Loading…
Reference in a new issue