I have two config-files
/app/config/database.yml
and
/app/config/userconfig.yml
i don't want to put the database credentials and userconfig in the svn-repository, so i have database.yml.dist and userconfig.yml.dist checked in.
What is the best way to get copys of the dist-files in the shared-directory when deploying the app for the first time?
For later deploys i'll link to them from /app/current/config
From stackoverflow
-
You should place your config files in
/path/to/deployed_app/sharedThen in a capistrano task, sym link to those files:
namespace :deploy do task :symlink_shared do run "ln -s #{shared_path}/database.yml #{release_path}/config/" end end before "deploy:restart", "deploy:symlink_shared"
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.