Skip to content

Instantly share code, notes, and snippets.

View SergeyKishenin's full-sized avatar
🥴

Sergey Kishenin SergeyKishenin

🥴
View GitHub Profile
#!/bin/sh
set_path="cd /home/rails/my_app/current"
case "$1" in
start)
echo -n "Starting delayed_job: "
su - rails -c "$set_path; RAILS_ENV=production script/delayed_job start" >> log/delayed_job.log 2>&1
echo "done."
;;
stop)