fix deploy rake process

This commit is contained in:
Xavier J 2016-02-24 11:12:18 +01:00
parent 774ad95cc6
commit e1d1e356e5

View file

@ -20,7 +20,7 @@ print "Deploy to #{ENV['to']} environment branch #{branch}\n"
# set :domain, '5.135.190.60'
set :domain, ENV['domain']
set :repository,'https://github.com/sgmap/tps.git'
set :repository, 'https://github.com/sgmap/tps.git'
set :port, 2200
set :deploy_to, '/var/www/tps_dev'
@ -71,7 +71,7 @@ set :shared_paths, [
"config/initializers/raven.rb",
'config/france_connect.yml',
'config/initializers/mailjet.rb'
]
]
set :rbenv_path, "/usr/local/rbenv/bin/rbenv"
@ -79,7 +79,7 @@ set :rbenv_path, "/usr/local/rbenv/bin/rbenv"
# Optional settings:
# set :user, 'foobar' # Username in the server to SSH to.
# set :port, '30000' # SSH port number.
set :forward_agent, true # SSH forward_agent.
set :forward_agent, true # SSH forward_agent.
# This task is the environment that is loaded for most commands, such as
# `mina deploy` or `mina rake`.
@ -128,11 +128,14 @@ task :deploy => :environment do
invoke :'deploy:link_shared_paths'
invoke :'bundle:install'
invoke :'rails:db_migrate'
invoke :'rails:db_seed'
invoke :'rails:assets_precompile'
to :launch do
queue "/etc/init.d/#{user} upgrade "
queue "cd #{deploy_to}/#{current_path}/"
queue "bundle exec rake db:seed RAILS_ENV=#{rails_env}"
queue %[echo "-----> Rake Seeding Completed."]
end
end
end