diff --git a/config/deploy.rb b/config/deploy.rb index 73761f2..565f329 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -25,6 +25,8 @@ set :user, 'feenix' # Username in the server to SSH to. set :shared_dirs, fetch(:shared_dirs, []).push('tmp/pids' , 'tmp/sockets' , 'public/uploads') set :shared_files, fetch(:shared_files, []).push('config/master.key') +set :force_migrate , true + # This task is the environment that is loaded for all remote run commands, such as # `mina deploy` or `mina rake`. task :remote_environment do @@ -54,7 +56,7 @@ task :deploy do invoke :'bundle:install' invoke :'rails:assets_precompile' invoke :'deploy:cleanup' - invoke :'rails[db:migrate]' + invoke :'rails:db_migrate' on :launch do in_path(fetch(:current_path)) do