diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-09 13:30:19 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-01-09 13:30:19 +0200 |
commit | 3c9d7b7077f41ab354dd36c42bdd74345993159a (patch) | |
tree | a84caaddabdbcce21f2c79b4fbc3675e33bb3a21 | |
parent | caa5a78863289b7703554f845dabc08ca0d53d2c (diff) | |
download | gitlab-ce-3c9d7b7077f41ab354dd36c42bdd74345993159a.tar.gz |
Procfile production, resque script
-rw-r--r-- | Procfile | 2 | ||||
-rw-r--r-- | Procfile.production | 2 | ||||
-rw-r--r-- | app/views/layouts/admin.html.haml | 1 | ||||
-rwxr-xr-x | resque.sh | 2 |
4 files changed, 6 insertions, 1 deletions
@@ -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 00000000000..68e8556e9c0 --- /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 cb0d6b932b0..2b3188056f9 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 00000000000..7c9850d0ec8 --- /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 |