部署时权限被拒绝

时间:2012-08-30 05:56:55

标签: ruby ruby-on-rails-3 capistrano vlad-deployer

部署时出现以下错误。

部署命令:

bundle exec rake current vlad:deploy

错误:

bash: script/delayed_delta: Permission denied
rake aborted!
execution failed with status 126: ssh deploy@something.com source ~/.rvm/scripts/rvm && rvm rvmrc trust /home/deploy/something.com.com/current && cd /home/deploy/something.com.com/current && rvm use ruby-1.9.2-p0@something && RAILS_ENV=current script/delayed_delta stop

可能是什么问题?

更新

当我在script / delayed_delta上运行以下命令时,权限已更改但仍然出现错误。

chmod +x script/delayed_delta

ERROR:

bash: script/delayed_job: Permission denied rake aborted! execution failed with status 126: ssh deploy@something.com source ~/.rvm/scripts/rvm && rvm rvmrc trust /home/deploy/something.com/current && cd /home/deploy/something.com/current && rvm use ruby-1.9.2-p0@something && if [[ -f script/delayed_job ]] ; then RAILS_ENV=current script/delayed_job stop ; fi

脚本目录中的权限是:

-rwxrwxr-x 1 delayed_delta
-rw-rw-r-- 1 delayed_job
-rw-rw-r-- 1 rails

0 个答案:

没有答案