Gitリポジトリからカピストラーノトラブル
-
18-09-2019 - |
質問
私はgitのとカピストラーノを使用してに新しいです。私は自分のサーバー上の他の設定のすべてを持っているとGitのレポに私のアプリをプッシュ( http://github.com /)/毎日-トレーラーのtnederlof。私はキャップのデプロイを実行するために行くとき:それはデシベルを熊手しようとするまで、冷たいすべてが動作しているようです。
:以下は、私はそれを実行したときに、私が得るものです、これは私が受け取る情報とエラーが発生した場所の最後の束があります * executing "cd /var/www/dailytrailer.net/releases/20100205052047; rake RAILS_ENV=production db:migrate"
servers: ["173.203.201.168"]
[173.203.201.168] executing command
** [out :: 173.203.201.168] (in /var/www/dailytrailer.net/releases/20100205052047)
command finished
* executing `deploy:start'
[DEPRECATED] `deploy:start` is going to be removed after 2.5.9 - see http://is.gd/2BPeA
* executing "cd /var/www/dailytrailer.net/current && nohup script/spin"
servers: ["173.203.201.168"]
[173.203.201.168] executing command
** [out :: 173.203.201.168] nohup: ignoring input and appending output to `nohup.out'
** [out :: 173.203.201.168] nohup: cannot run command `script/spin': No such file or directory
command finished
failed: "sh -c 'cd /var/www/dailytrailer.net/current && nohup script/spin'" on 173.203.201.168
誰かが私には、スクリプト/スピンがすべてに約あるかを見つけ出す助けてくださいことはできますか?
ありがとうございます!
解決
あなたは、アプリケーションサーバーに使用しようとしているものを知っていますか?それは乗客の場合は、あなたのdeploy.rbでめちゃくちゃに何かを持っています。それは雑種だ場合、これは助けになるはずです(ポストしたいファイル場合より、これをデバッグに役立つこと。)。
のhttp://www.rubyrobot .ORG /物品/展開レール-20ツー雑種-WITH-カピストラーノ-21 の
他のヒント
私は、ここでSAMの問題を抱えています すべてが
のために期待して実行されますexecuting `deploy:start'
[DEPRECATED] `deploy:start` is going to be removed after 2.5.9 - see http://is.gd/2BPeA
* executing "cd /srv/www/domain.com/domain/current && nohup script/spin"
servers: ["domain.com"]
[domain.com] executing command
** [out :: domain.com] nohup: ignoring input and appending output to `nohup.out'
** [out :: domain.com] nohup: cannot run command `script/spin': No such file or directory
command finished
failed: "sh -c 'cd /srv/www/domain.com/domain/current && nohup script/spin'" on domain.com
ここでどのような問題が表示されない私のデプロイファイルです。
set :application, "domain"
set :repository, "git@git.assembla.com:domain.git"
set :user, "blitz"
set :use_sudo, false
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :deploy_to, "/srv/www/domain.com/#{application}"
#set :git_enable_submodules, 1 # Make sure git submodules are populated
set :port, 3002 # The port you've setup in the SSH setup section
#set :ssh_options, { :forward_agent => true }
default_run_options[:pty] = true
role :web, "domain.com" # Your HTTP server, Apache/etc
role :app, "domain.com" # This may be the same as your `Web` server
role :db, "domain.com", :primary => true # This is where Rails migrations will run
#role :db, "domain.com" # for slave db
# If you are using Passenger mod_rails uncomment this:
# if you're still using the script/reapear helper you will need
# these http://github.com/rails/irs_process_scripts
namespace :deploy do
desc "Restarting mod_rails with restart.txt"
# task :start do ; end
# task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
end
desc "Make symlink for database.yml"
task :symlink_dbyaml do
run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
end
desc "Create empty database.yml in shared path"
task :create_dbyaml do
run "mkdir -p #{shared_path}/config"
put '', "#{shared_path}/config/database.yml"
end
end
after 'deploy:setup', 'deploy:create_dbyaml'
after 'deploy:update_code', 'deploy:symlink_dbyaml'
after "deploy", "deploy:cleanup"
編集: 決して、心はANSを見つけました deploy.rbでこれを乗客を使用して、必要に応じた
[:start, :stop].each do |t|
desc "ignore #{t} since we are using passenger"
task t do ; end
end
所属していません StackOverflow