Sha256: 567c2a4ce8aa3567cd3c408722fccf9c91e9ab3df725525a4e7277ebc4df4b04
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
# # Common Rake Tasks for Middleman Apps # require 'airbrake/tasks' desc 'Post Deployment Task for blazing' task :post_deploy => :environment do puts 'Compiling Stylesheets, the old way' puts '[ bundle exec compass compile ]' system 'bundle exec compass compile' # # Run migrations # puts 'Running migrations if necessary' puts '[ rake db:migrate ]' Rake::Task["db:migrate"].invoke # # Trigger Unicorn reexec with 0 downtime # puts 'restarting unicorns' puts "[ #{ENV['HOME']}/unicorn.sh upgrade #{APP_NAME}_#{Rails.env} ]" system "#{ENV['HOME']}/unicorn.sh upgrade #{APP_NAME}_#{Rails.env}" # # Enable monit monitoring # puts 'enable monit' puts "[ monit -g #{APP_NAME}_#{Rails.env} monitor ]" system "monit -g #{APP_NAME}_#{Rails.env} monitor" # # Notify Airbrake of deployment # puts 'notifying airbrake' puts "[ rake airbrake:deploy TO=#{Rails.env} REVISION=$(git rev-parse HEAD) ]" system "rake airbrake:deploy TO=#{Rails.env} REVISION=$(git rev-parse HEAD)" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoestrap-0.4.1 | lib/shoestrap/tasks/radiant.rb |
shoestrap-0.4.0 | lib/shoestrap/tasks/radiant.rb |
shoestrap-0.3.1.pre | lib/shoestrap/tasks/radiant.rb |