0
我正在嘗試將應用程序部署到亞馬遜網絡服務器。我讓Git安裝並運行(我已經成功地推但是,當我嘗試做帽部署我收到拒絕「權限」Ruby on Rails AWS Cap部署權限被拒絕
這裏的錯誤:
servers: ["22.229.78.34"]
[[email protected]] executing command
** [22.229.78.34 :: out] Cloning into '/home/ubuntu/liquid_admin/releases /20130703153332'...
** [22.229.78.34 :: out] Permission denied (publickey).
** fatal: The remote end hung up unexpectedly
command finished in 779ms
*** [deploy:update_code] rolling back
而這裏的部署文件:
require 'bundler/capistrano'
set :user, 'ubuntu'
set :domain, '[email protected]'
set :applicationdir, "~/liquid_admin"
set :scm, 'git'
set :repository, "ssh://[email protected]/~/liquid_admin.git"
set :git_enable_submodules, 1 # if you have vendored rails
set :branch, 'master'
set :git_shallow_clone, 1
set :scm_verbose, true
set :application, "liquid.radio"
# set :scm, :git # You can set :scm explicitly or Capistrano will make an intelligent guess based on known version control directory names
或者:accurev
,bzr
,cvs
,darcs
,git
,mercurial
,perforce
,subversion
或none
role :web, "[email protected]" # Your HTTP server, Apache/etc
role :app, "[email protected]" # This may be the same as your ` Web` server
role :db, "[email protected]", :primary => true # This is where Rails migrations will run
set :deploy_to, "~/liquid_admin"
set :deploy_via, :export
default_run_options[:pty] = true
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
可能是一個愚蠢的時問,但我想知道如果我需要已經Ruby和Rails安裝了這個工作。無論如何,我現在要這樣做......但我只是想知道(不知道帽子是否適合你)。
但是除此之外,它會失敗嗎?
再次git設置和運行良好。推工作得很好。 SSH工作正常。我應該注意的另一件事是,我試着運行[email protected]並運行22.229.78.34。我這樣做的Ubuntu的方式,因爲這通常是唯一的方式亞馬遜將接受連接。任何幫助,將不勝感激。
好吧,它看起來好像還行......然後它打我「捆綁未找到」[54.229.78.34 :: out]解決三角洲:100%(21/21),完成。 ** [out :: 54.229.78.34] sh:1: ** [out :: 54.229.78.34] bundle:找不到 –
Nevermind ...在另一篇文章中找到了解決方案... VICTORY! –