lib/potassium/recipes/heroku.rb in potassium-2.1.0 vs lib/potassium/recipes/heroku.rb in potassium-2.2.0
- old
+ new
@@ -32,11 +32,11 @@
end
private
def add_heroku
- gather_gems(:production, :staging) do
+ gather_gems(:production) do
gather_gem('rails_stdout_logging')
end
copy_file '../assets/Procfile', 'Procfile'
copy_file '../assets/.buildpacks', '.buildpacks'
@@ -78,10 +78,10 @@
def who_am_i
`heroku auth:whoami`.strip
end
def create_app_on_heroku(environment)
- rack_env = "RACK_ENV=#{environment} RAILS_ENV=#{environment}"
+ rack_env = "RACK_ENV=production"
staged_app_name = app_name_for(environment)
run_toolbelt_command "create #{staged_app_name} --remote #{environment}"
run_toolbelt_command "config:add #{rack_env}", staged_app_name
run_toolbelt_command "config:add DEPLOY_TASKS=db:migrate", staged_app_name