My recommendation is that you start out using a shell script which executes your ruby process. Here's one that works for me:
#!/bin/sh
. /usr/bin/rvm > /dev/null
rvm use ruby-1.9.3-p0
cd /wherever
export PADRINO_ENV=production
/usr/bin/time ./import-noc-events.rb
exit 0
No comments:
Post a Comment