diff options
| author | mo khan <mo@mokhan.ca> | 2013-06-01 09:04:31 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2013-06-01 09:04:31 -0600 |
| commit | ce9506d9542604bf35af4b6391428f95e6594a2b (patch) | |
| tree | b58e22ec7ac5c6925754c875b13c45b3820bc67b /lib | |
| parent | d50de2534077e0feaec0aa9b501ce63b37203175 (diff) | |
fix the prod deploy target to always sync assets and fire the first request after deployment
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tasks/deployment.rake | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/tasks/deployment.rake b/lib/tasks/deployment.rake index 8e884e54..c96b3021 100644 --- a/lib/tasks/deployment.rake +++ b/lib/tasks/deployment.rake @@ -7,13 +7,12 @@ namespace :deploy do desc "deploy to production server" task :production, :tag do |t, args| tag_to_deploy = args.tag + sh "rake assets:precompile" if tag_to_deploy.blank? - sh "rake assets:precompile" sh "cap production deploy:migrations" else - puts "deploying to production from tag #{tag_to_deploy}" sh "cap production deploy:migrations -s tag=#{tag_to_deploy}" - sh "curl http://cakeside.com/ > /dev/null" end + sh "curl http://cakeside.com/ > /dev/null" end end |
