Skip to content

Instantly share code, notes, and snippets.

@collinschaafsma
Created August 17, 2010 16:07
Show Gist options
  • Save collinschaafsma/530569 to your computer and use it in GitHub Desktop.
Save collinschaafsma/530569 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
File.open("/data/my_app/shared/pids/my_app_job_runner.pid", "w") do |f|
f << Process.pid.to_s
end
`cd /data/my_app/current;/usr/bin/env HOME=/home/deploy RAILS_ENV=production rake jobs:work& > log/delayed_jobs.log`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment