指定rails运行环境命令

RAILS_ENV=production bundle exec rake db:migrate

RAILS_ENV=integ bundle exec rails c

 

nohup 执行rake命令

nohup bundle exec rake tianji:image_uploader --trace RAILS_ENV=integ &

posted on 2014-06-10 11:46  qinyan20  阅读(385)  评论(0编辑  收藏  举报