diff --git a/Procfile b/Procfile index 2f73f49..09ec8cc 100644 --- a/Procfile +++ b/Procfile @@ -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 diff --git a/Procfile.production b/Procfile.production new file mode 100644 index 0000000..68e8556 --- /dev/null +++ b/Procfile.production @@ -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 diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index cb0d6b9..2b31880 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -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 diff --git a/resque.sh b/resque.sh new file mode 100755 index 0000000..7c9850d --- /dev/null +++ b/resque.sh @@ -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 -- libgit2 0.21.2