3

部署时出现以下错误。

部署命令:

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

错误:

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
4

0 回答 0