Commit 3c9d7b7077f41ab354dd36c42bdd74345993159a

Authored by Dmitriy Zaporozhets
1 parent caa5a788

Procfile production, resque script

Procfile
1 1 web: bundle exec rails s -p $PORT
2   -worker: bundle exec rake environment resque:work QUEUE=*
  2 +worker: bundle exec rake environment resque:work QUEUE=* VVERBOSE=1
... ...
Procfile.production 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +web: bundle exec rails s -p $PORT -e production
  2 +worker: bundle exec rake environment resque:work RAILS_ENV=production QUEUE=* VVERBOSE=1
... ...
app/views/layouts/admin.html.haml
... ... @@ -22,6 +22,7 @@
22 22 = link_to "Projects", admin_projects_path, :class => controller.controller_name == "projects" ? "current" : nil
23 23 = link_to "Teams", admin_team_members_path, :class => controller.controller_name == "team_members" ? "current" : nil
24 24 = link_to "Emails", admin_emails_path, :class => controller.controller_name == "mailer" ? "current" : nil
  25 + = link_to "Resque", "/info/resque"
25 26  
26 27 .project-content
27 28 = yield
... ...
resque.sh 0 → 100755
... ... @@ -0,0 +1,2 @@
  1 +mkdir tmp/pids
  2 +nohup bundle exec rake environment resque:work QUEUE=* VVERBOSE=1 RAILS_ENV=production PIDFILE=tmp/pids/resque_worker_QUEUE.pid & >> log/resque_worker_QUEUE.log 2>&1
... ...