Sha256: 24dc6cc8431a9520e690b83e255e0e90c2d07301133d256c8aeb88bcea02b299

Contents?: true

Size: 452 Bytes

Versions: 1

Compression:

Stored size: 452 Bytes

Contents

desc 'run post-deployment stuff'
task :post_deploy do

  # Precompile assets
  puts 'Precompiling assets'
  Rake::Task["assets:precompile"].invoke

  # Run migrations
  puts 'Running migrations if necessary'
  Rake::Task["db:migrate"].invoke

  # Trigger Unicorn reexec with 0 downtime
  puts 'restarting unicorns'
  system "<%= restart_unicorn_command %>"

  # Enable monit monitoring
  puts 'enable monit'
  system "<%= restart_monit_command %>"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
shoestrap-0.2.0 lib/generators/shoestrap/templates/deployment/deployment.rake.erb