【发布时间】:2013-09-26 01:38:42
【问题描述】:
所以我尝试通过 capistrano 部署应用程序,但尽管尝试了几种格式来引用 pem 文件,但它反复询问我的密码。 pem 文件位于 rails 项目的根目录中,名为 highlandsapptestdeploy。这是我的代码:另外,我不确定我的服务器引用是否正确?
set :application, "highlandsfacebookart"
set :repository, "https://onenoc@bitbucket.org/onenoc/highlands-coffee-art-app.git"
set :user, 'deploy'
set :use_sudo, false
set :deploy_to, "/var/www/#{application}#"
set :deploy_via, :remote_cache
ssh_options[:keys] = %w(/highlandsapptestdeploy/highlandsfbkey.pem)
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
role :web, "ec2-54-200-24-60.us-west-2.compute.amazonaws.com" # Your HTTP server, Apache/etc
role :app, "ec2-54-200-24-60.us-west-2.compute.amazonaws.com" # This may be the same as your `Web` server
role :db, "ec2-54-200-24-60.us-west-2.compute.amazonaws.com", :primary => true # This is where Rails migrations will run
role :db, "ec2-54-200-24-60.us-west-2.compute.amazonaws.com"
【问题讨论】:
标签: ruby-on-rails amazon-web-services capistrano