Answer the question
In order to leave comments, you need to log in
Why does Capistrano deploy without errors?
I encountered strange behavior of Capistrano: after specifying the basic settings during the test cap production deploy, my application was successfully deployed, bypassing the errors of the absence of some gems and migration. The server naturally opens nothing (server error).
Tell me please, how can this be?
Config:
lock '3.4.0'
set :application, 'myapp'
set :repo_url, '[email protected]:name/myapp.git'
set :deploy_to, '/home/deploy/myapp'
set :deploy_user, 'deploy'
set :linked_files, fetch(:linked_files, []).push('config/database.yml', '.env')
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'public/uploads')
namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
execute :touch, release_path.join('tmp/restart.txt')
end
end
after :publishing, :restart
end
role :app, %w{[email protected]}
role :web, %w{[email protected]}
role :db, %w{[email protected]}
set :rails_env, :production
server '123.456.78.09', user: 'deploy', roles: %w{app db web}, primary: true
set :ssh_options, {
keys: %w(/Users/user/.ssh/id_rsa),
forward_agent: true,
auth_methods: %w(publickey password)
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question