私は誰かが私を助けてくれることを望んでいました、私はcapistranoを介してサイトを展開する最初の経験に入ります、しかし私が実行するたびに私cap deploy:check
はエラーを受け取りますタスク「ステージング」は存在しません、問題は何ですか?
これは私のdeploy.rbです
set :application, "Myproject"
set :repository, "******@bitbucket.org/simonainley/myproject.git"
set :scm, :git
set :ssh_options, {:forward_agent =>true}
set :stages, %w(staging production)
set :default_stage, "staging"
require 'capistrano/ext/miltistage'
そしてこれは私のstaging.rbです
role :server, "**.**.**.***"
set :user, "user"
set :password, "password"
set :branch, "dev"
set :web_directory, "/home/***/public_html/staging/****"
namespace :deploy do |
desc "Deploys code to the staging enviroment."
task :default_stage, :roles => :server, :except => {:;no_release => true}
run [
"cd #{web_directory}",
"git reset --hard",
"git checkout #{branch}",
"git fetch",
"git pull origin #{branch}" ].join("; ")
end
end
設定または変数が欠落していると思いますか?