lib/suspenders/app_builder.rb in welaika-suspenders-2.29.0 vs lib/suspenders/app_builder.rb in welaika-suspenders-2.30.0

- old
+ new

@@ -5,21 +5,19 @@ include Suspenders::Actions extend Forwardable def_delegators( :heroku_adapter, - :create_heroku_application_manifest_file, :create_heroku_pipeline, :create_production_heroku_app, - :create_review_apps_setup_script, :create_staging_heroku_app, :set_heroku_application_host, :set_heroku_backup_schedule, - :set_heroku_error_reporting_env, :set_heroku_rails_secrets, :set_heroku_remotes, - :set_heroku_metadata_for_sentry, + :set_heroku_sentry_configuration, + :set_heroku_smtp_settings, :set_buildpacks, ) def readme template 'README.md.erb', 'README.md' @@ -100,15 +98,10 @@ copy_file "email.rb", "config/initializers/email.rb" end def enable_rack_canonical_host config = <<-RUBY - - if ENV.fetch("HEROKU_APP_NAME", "").include?("staging-pr-") - ENV["APPLICATION_HOST"] = ENV["HEROKU_APP_NAME"] + ".herokuapp.com" - end - config.middleware.use Rack::CanonicalHost, ENV.fetch("APPLICATION_HOST") RUBY configure_environment "production", config end @@ -241,37 +234,17 @@ def create_heroku_apps(flags) create_staging_heroku_app(flags) create_production_heroku_app(flags) end - def create_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 - run "chmod a+x bin/deploy" - end - def copy_miscellaneous_files - copy_file "browserslist", "browserslist" copy_file "errors.rb", "config/initializers/errors.rb" copy_file "json_encoding.rb", "config/initializers/json_encoding.rb" end def customize_error_pages meta_tags =<<-EOS <meta charset="utf-8" /> - <meta name="ROBOTS" content="NOODP" /> <meta name="viewport" content="initial-scale=1" /> EOS %w(500 404 422).each do |page| path = "public/#{page}.html"