我有一个 Rails 应用程序,我正在尝试使用 Capistrano 部署到 ec2 实例。我的deploy.rb
:
set :application, "uc_social_server"
set :repository, "septerr@bitbucket.org/urbancoding/uc_social_server.git"
set :user, "ec2-user"
server "ec2-23-22-188-11.compute-1.amazonaws.com", :app, :web, :db, :primary => true
set :deploy_to, "/home/ec2-user/uc_social_server"
ssh_options[:keys] = %w(/Users/sony/.ssh/ec2-social-server-key.pem)
default_run_options[:pty] = true
运行cap deploy:check
失败:
The following dependencies failed. Please check them and try again:
--> You do not have permissions to write to `/home/ec2-user/uc_social_server/releases'. (ec2-23-22-188-11.compute-1.amazonaws.com)
我尝试了一些在stackoverflow上找到的解决方案,但没有成功。使用 capistrano 部署到 ec2 的正确方法是什么?