adjust
This commit is contained in:
parent
a3b91b0b60
commit
fd88ddf59c
@ -17,6 +17,6 @@ test:
|
||||
|
||||
production:
|
||||
adapter: sqlite3
|
||||
database: ../sqlite3_databases/production.sqlite3
|
||||
database: db/production.sqlite3
|
||||
pool: 5
|
||||
timeout: 5000
|
||||
|
@ -26,7 +26,8 @@ set :use_sudo, false
|
||||
set :ssh_options, {:forward_agent => true}
|
||||
|
||||
after "deploy", "deploy:bundle_gems"
|
||||
after "deploy:bundle_gems", "deploy:restart"
|
||||
after "deploy:bundle_gems", "deploy:make_simlinks"
|
||||
after "deploy:make_simlinks", "deploy:restart"
|
||||
after "deploy:restart", "deploy:cleanup"
|
||||
|
||||
# if you're still using the script/reaper helper you will need
|
||||
@ -37,6 +38,17 @@ namespace :deploy do
|
||||
task :bundle_gems do
|
||||
run "cd #{deploy_to}current && bundle install"
|
||||
end
|
||||
|
||||
task :make_simlinks do
|
||||
run "rm -r #{deploy_to}current/db/production.sqlite3"
|
||||
run "ln -s #{deploy_to}/shared/sqlite3_databases/production.sqlite3 #{deploy_to}current/db/production.sqlite3"
|
||||
|
||||
run "rm -r #{deploy_to}current/private_medias"
|
||||
run "ln -s #{deploy_to}/shared/medias/private #{deploy_to}current/private_medias"
|
||||
|
||||
run "rm -r #{deploy_to}current/public/publi"
|
||||
run "ln -s #{deploy_to}/shared/medias/public #{deploy_to}current/private_medias"
|
||||
end
|
||||
task :start do ; end
|
||||
task :stop do ; end
|
||||
task :restart, :roles => :app, :except => { :no_release => true } do
|
||||
|
Loading…
x
Reference in New Issue
Block a user