T
T
The Whiz2015-03-24 18:49:56
Ruby on Rails
The Whiz, 2015-03-24 18:49:56

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

production:
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

2 answer(s)
V
Vayladion Gognazdiak, 2015-03-25
@etspring

I would like to see the logs...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question