lib/capistrano/tasks/foreman.cap in capistrano3-foreman-0.2.3 vs lib/capistrano/tasks/foreman.cap in capistrano3-foreman-0.2.5

- old
+ new

@@ -1,12 +1,14 @@ namespace :foreman do desc 'Export the Procfile to Ubuntu upstart scripts' task :export do on roles(:app) do |host| - log_path = shared_path.join('log') + log_path = shared_path.join('log') + environment_path = fetch(:foreman_env) + within release_path do as :root do - execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path}" + execute :bundle, "exec foreman export upstart /etc/init -a #{fetch(:application)} -u #{host.user} -l #{log_path} -e #{environment_path}" end end end end \ No newline at end of file