diff --git a/lib/recap/tasks/foreman.rb b/lib/recap/tasks/foreman.rb index 4ae36bf..623ceaf 100644 --- a/lib/recap/tasks/foreman.rb +++ b/lib/recap/tasks/foreman.rb @@ -19,7 +19,7 @@ module Recap::Tasks::Foreman set(:foreman_export_location, "/etc/init") # The standard foreman export. - set(:foreman_export_command) { "./bin/foreman export #{foreman_export_format} #{foreman_tmp_location} --procfile #{procfile} --app #{application} --user #{application_user} --log #{deploy_to}/log" } + set(:foreman_export_command) { "./bin/foreman export #{foreman_export_format} #{foreman_tmp_location} --procfile #{procfile} --app #{application} --user #{application_user} --log #{deploy_to}/log --env #{environment_file}" } namespace :export do # After each deployment, the startup scripts are exported if the `Procfile` has changed. @@ -71,4 +71,4 @@ module Recap::Tasks::Foreman after 'deploy:update_code', 'foreman:export:if_changed' after 'deploy:restart', 'foreman:restart' end -end \ No newline at end of file +end