lib/suspenders/app_builder.rb in welaika-suspenders-2.4.0 vs lib/suspenders/app_builder.rb in welaika-suspenders-2.5.0
- old
+ new
@@ -252,14 +252,14 @@
def configure_simple_form
bundle_command "exec rails generate simple_form:install"
end
def configure_action_mailer
- action_mailer_host 'development', "localhost:#{port}"
- action_mailer_host 'test', 'www.example.com'
- action_mailer_host 'staging', "staging.#{app_name}.com"
- action_mailer_host 'production', "#{app_name}.com"
+ action_mailer_host "development", "localhost:#{port}"
+ action_mailer_host "test", "www.example.com"
+ action_mailer_host "staging", %{ENV.fetch("HOST")}
+ action_mailer_host "production", %{ENV.fetch("HOST")}
end
def configure_available_locales
config = <<-RUBY
config.i18n.available_locales = [:en, :it]
@@ -326,12 +326,12 @@
def init_git
run 'git init'
end
- def create_heroku_apps
- run_heroku "create #{app_name}-production --region eu", "production"
- run_heroku "create #{app_name}-staging --region eu", "staging"
+ def create_heroku_apps(flags)
+ run_heroku "create #{app_name}-production #{flags}", "production"
+ run_heroku "create #{app_name}-staging #{flags}", "staging"
run_heroku "config:add RACK_ENV=staging RAILS_ENV=staging", "staging"
end
def set_heroku_remotes
remotes = <<-SHELL