Today I developed at a project, where I need an extra symlink after each new deployment. I do the deployment with capistrano. Here is my code snippet:
task :symlink_documents do run "mkdir -p #{release_path}/non-public/system" run "ln -nfs #{shared_path}/system/documents #{release_path}/non-public/system/documents" end after "deploy:update_code", :symlink_documents
And the symlink will be created after every new deployment.
0 Kommentare zu "rails deployment symlink"
Kommentar verfassen