Configure delayed job logging, add startup script for monit

This commit is contained in:
Rohan Mitchell
2015-04-17 10:40:25 +10:00
parent d1ab2d9dac
commit 2b5fc656fe
2 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
Delayed::Worker.logger = Logger.new(Rails.root.join('log', 'delayed_job.log'))

6
script/delayed_job.sh Normal file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
export HOME="/home/openfoodweb"
export PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
$HOME/apps/openfoodweb/current/script/delayed_job $@