diff options
| author | mo k <mo@mokhan.ca> | 2012-09-22 16:25:33 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-22 16:25:33 -0600 |
| commit | 6c4e2db2c67320e158731594b7b1ea9e5f99ae6a (patch) | |
| tree | 7ea2af69beb14cb3f92207c33a59315110e97c40 | |
| parent | 03f0249518e9343850ba1d3fdeed325a2a80c5e7 (diff) | |
symlink to database.production.yml in the relase directory.
| -rw-r--r-- | config/deploy.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/config/deploy.rb b/config/deploy.rb index 93e34749..16afd323 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -27,6 +27,8 @@ after 'deploy:update_code', 'deploy:symlink_db' namespace :deploy do task :symlink_db, :roles => :app do - run "ln -nfs #{deploy_to}/shared/config/database.yml #{release_path}/config/database.yml" + # todo: need to replace 'production' with target environment + run "ln -nfs #{release_path}/config/database.production.yml.example #{release_path}/config/database.yml" + #run "ln -nfs #{deploy_to}/shared/config/database.yml #{release_path}/config/database.yml" end end |
