Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace :db do
- desc "Make symlink for database yaml"
- task :symlink do
- run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
- end
- end
- ## Error
- * executing "find /home/ellis/www/picpocket/releases/20100105100458/public/images /home/ellis/www/picpocket/releases/20100105100458/public/stylesheets /home/ellis/www/picpocket/releases/20100105100458/public/javascripts -exec touch -t 201001051005.13 {} ';'; true"
- servers: ["10.0.1.10"]
- [10.0.1.10] executing command
- ** [out :: 10.0.1.10] find: `/home/ellis/www/picpocket/releases/20100105100458/public/stylesheets': No such file or directory
- command finished
- * executing `deploy:symlink'
- * executing "rm -f /home/ellis/www/picpocket/current && ln -s /home/ellis/www/picpocket/releases/20100105100458 /home/ellis/www/picpocket/current"
- servers: ["10.0.1.10"]
- [10.0.1.10] executing command
- command finished
- ** transaction: commit
- Ellis:picpocket ellis$ cap db:symlink
- * executing `db:symlink'
- * executing "ln -nfs /home/ellis/www/picpocket/shared/config/database.yml /home/ellis/www/picpocket/releases/20100105100606/config/database.yml"
- servers: ["10.0.1.10"]
- Password:
- [10.0.1.10] executing command
- ** [out :: 10.0.1.10] ln: creating symbolic link `/home/ellis/www/picpocket/releases/20100105100606/config/database.yml': No such file or directory
- command finished
- failed: "sh -c 'ln -nfs /home/ellis/www/picpocket/shared/config/database.yml /home/ellis/www/picpocket/releases/20100105100606/config/database.yml'" on 10.0.1.10
Add Comment
Please, Sign In to add comment