I try to deploy rails app via mina.But when I start deploy task, mina return an error
-----> Launching
$ cd "$release_path"
$ echo "$release_path"
$
if [ -e '/home/ubuntu/deploy/shared/tmp/sockets/pumactl.sock' ]; then
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 is not running!';
fi
Could not locate Gemfile or .bundle/ directory
! ERROR: Deploy failed.
my tasks in deploy.rb are passed good, but when mina start launch - I get error.Here is my 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 do
queue! %(RAILS_ENV=production rake resque:restart_workers)
end
desc "Precompiles assets."
task :'assets_precompile:force' do
queue %{
echo "-----> Precompiling asset files"
#{echo_cmd %[#{rake_assets_precompile}]}
}
end
task :enviroment do
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 the current version to the staging server."
task :deploy => :enviroment do
deploy do
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'
to :launch do
queue "mkdir -p #{deploy_to}/#{current_path}/tmp/"
invoke :'puma:phased_restart'
end
end
invoke :'whenever:write'
end
I remove some code blocks, because so forbid passed big chain of code.Sorry for my bad English
@Малъ Скрылевъ thank you for response, but I find solution.There is it https://github.com/mina-deploy/mina/issues/79