lib/deployment.rb in picky-0.0.3 vs lib/deployment.rb in picky-0.0.4
- old
+ new
@@ -122,13 +122,12 @@
task :symlink do
set :user, 'deploy'
run "rm -rf #{current_path}/log; ln -sf #{shared_path}/log #{current_path}/log"
run "rm -rf #{current_path}/index; ln -sf #{shared_path}/index #{current_path}/index"
# link database-config files
- run "ln -sf #{shared_path}/config/base.yml #{current_path}/config/db/base.yml"
- run "ln -sf #{shared_path}/config/source.yml #{current_path}/config/db/source.yml"
+ run "ln -sf #{shared_path}/app/db.yml #{current_path}/app/db.yml"
# link unicorn.ru
- run "ln -sf #{shared_path}/config/unicorn.ru #{current_path}/config/unicorn.ru" # TODO change path
+ run "ln -sf #{shared_path}/app/unicorn.ru #{current_path}/app/unicorn.ru"
end
namespace :rollback do
desc "Rollback to last release."
task :default, :roles => :app do
\ No newline at end of file