Don't forget to lycansubscribe

added task to deploy config to link env from shared

Changed files
+5
config
+5
config/deploy.rb
··· 22 23 after 'deploy', 'deploy:cleanup' 24 after 'deploy:migrations', 'deploy:cleanup' 25 26 namespace :deploy do 27 task :restart, :roles => :web do ··· 32 run "cd #{release_path} && bundle config set --local deployment 'true'" 33 run "cd #{release_path} && bundle config set --local path '#{shared_path}/bundle'" 34 run "cd #{release_path} && bundle config set --local without 'development test'" 35 end 36 end
··· 22 23 after 'deploy', 'deploy:cleanup' 24 after 'deploy:migrations', 'deploy:cleanup' 25 + after 'deploy:update_code', 'deploy:link_shared' 26 27 namespace :deploy do 28 task :restart, :roles => :web do ··· 33 run "cd #{release_path} && bundle config set --local deployment 'true'" 34 run "cd #{release_path} && bundle config set --local path '#{shared_path}/bundle'" 35 run "cd #{release_path} && bundle config set --local without 'development test'" 36 + end 37 + 38 + task :link_shared do 39 + run "ln -s #{shared_path}/env #{release_path}/.env" 40 end 41 end