简体   繁体   English

Rails 3和delay_job在生产中

[英]Rails 3 and delayed_job on production

Using delayed_job gem with my rails 3 app on development working great but when I tried to use it on production using capistrano it gives me these error 在我的Rails 3应用程序上使用delay_job gem可以很好地进行开发,但是当我尝试使用capistrano在生产中使用它时,会出现这些错误

script/delayed_job: Permission denied 脚本/延迟工作:权限被拒绝

I am using their method and I followed These Railscast video 我正在使用他们的方法,并且关注了这些Railscast视频

http://railscasts.com/episodes/171-delayed-job-revised http://railscasts.com/episodes/171-delayed-job-revised

https://github.com/collectiveidea/delayed_job/wiki/Rails-3-and-Capistrano https://github.com/collectiveidea/delayed_job/wiki/Rails-3-and-Capistrano

Without knowing anything more (what users are you using? how do the permissions on the file look like?), I can't give you a better solution than to try 一无所知(您正在使用什么用户?文件的权限看起来如何?),我无法为您提供比尝试更好的解决方案

chmod a+x script/delayed_job

to give everyone execution permission for the script/delayed_job file... 授予每个人对script/delayed_job文件的执行权限...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM