lib/suspenders/app_builder.rb in welaika-suspenders-2.1.0 vs lib/suspenders/app_builder.rb in welaika-suspenders-2.2.0

- old
+ new

@@ -339,9 +339,25 @@ %w(staging production).each do |environment| run_heroku "config:add NEW_RELIC_AGGRESSIVE_KEEPALIVE=1", environment end end + def provide_deploy_script + copy_file "bin_deploy", "bin/deploy" + + instructions = <<-MARKDOWN +## Deploying + +If you have previously run the `./bin/setup` script, +you can deploy to staging and production with: + + $ ./bin/deploy staging + $ ./bin/deploy production + MARKDOWN + + append_file "README.md", instructions + end + def create_github_repo(repo_name) path_addition = override_path_for_tests run "#{path_addition} hub create #{repo_name}" end