Skip to content

Commit

Permalink
Procfile production, resque script
Browse files Browse the repository at this point in the history
  • Loading branch information
dzaporozhets committed Jan 9, 2012
1 parent caa5a78 commit 3c9d7b7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: bundle exec rails s -p $PORT
worker: bundle exec rake environment resque:work QUEUE=*
worker: bundle exec rake environment resque:work QUEUE=* VVERBOSE=1
2 changes: 2 additions & 0 deletions Procfile.production
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: bundle exec rails s -p $PORT -e production
worker: bundle exec rake environment resque:work RAILS_ENV=production QUEUE=* VVERBOSE=1
1 change: 1 addition & 0 deletions app/views/layouts/admin.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
= link_to "Projects", admin_projects_path, :class => controller.controller_name == "projects" ? "current" : nil
= link_to "Teams", admin_team_members_path, :class => controller.controller_name == "team_members" ? "current" : nil
= link_to "Emails", admin_emails_path, :class => controller.controller_name == "mailer" ? "current" : nil
= link_to "Resque", "/info/resque"

.project-content
= yield
2 changes: 2 additions & 0 deletions resque.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mkdir tmp/pids
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

0 comments on commit 3c9d7b7

Please sign in to comment.