ruby on rails - Mina deploy failed -
i try deploy rails app via mina.but when start deploy task, mina return error
-----> launching $ cd "$release_path" $ echo "$release_path" $ if [ -e '/home/ubuntu/deploy/shared/tmp/sockets/pumactl.sock' ]; cd /home/ubuntu/deploy/current && rails_env="production" /home/ubuntu/.rbenv/shims/bundle exec pumactl -s /home/ubuntu/deplo cd /home/ubuntu/deploy/current && rails_env="production" /home/ubuntu/.rbenv/shims/bundle exec pumactl -s /home/ubuntu/deploy/shared/tmp/sockets/puma.state phased-restart else echo 'puma not running!'; fi not locate gemfile or .bundle/ directory ! error: deploy failed.
my tasks in deploy.rb passed good, when mina start launch - error.here deploy_staging.rb
require 'mina/bundler' require 'mina/rails' require 'mina/whenever' require 'mina/git' require 'mina/rbenv' require 'mina/puma' require 'mina/nginx' require 'mina/scp' node_path = '/usr/bin/node' set :domain, '' set :application, 'deploy' set :server_name, '' set :deploy_to, '/home/ubuntu/deploy' set :repository, '' set :branch, 'master' set :bundle_bin, '/home/ubuntu/.rbenv/shims/bundle' desc "restart resque workers" task :restart_resque => :environment queue! %(rails_env=production rake resque:restart_workers) end desc "precompiles assets." task :'assets_precompile:force' queue %{ echo "-----> precompiling asset files" #{echo_cmd %[#{rake_assets_precompile}]} } end task :enviroment invoke :'rbenv:load' queue! %(export node_path="#{node_path}") queue! %(export path="#{node_path}:$path") queue! %[mkdir -p "#{deploy_to}/shared/public"] queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/public"] queue! %[mkdir -p "#{deploy_to}/shared/vendor/assets/bower_components"] queue! %[chmod g+rx,u+rwx "#{deploy_to}/shared/vendor/assets/bower_components"] end desc "deploys current version staging server." task :deploy => :enviroment deploy invoke :'git:clone' invoke :'deploy:link_shared_paths' invoke :'bundle:install' invoke :'disable_active_admin' invoke :'rails:db_migrate' invoke :'enable_active_admin' invoke :'bower_install' invoke :'assets_precompile' invoke :'deploy:cleanup' invoke :'restart_resque' :launch queue "mkdir -p #{deploy_to}/#{current_path}/tmp/" invoke :'puma:phased_restart' end end invoke :'whenever:write' end
i remove code blocks, because forbid passed big chain of code.sorry bad english
@Малъ Скрылевъ thank response, find solution.there https://github.com/mina-deploy/mina/issues/79
Comments
Post a Comment