/ Published in: Rails

In this instance, used as an after-deploy hook to create a symlink to a shared db config file
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
desc "Make symlink for database yaml" task :symlink do run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml" end
Comments
