1
0
mirror of https://github.com/danbee/danbarberphoto synced 2025-03-04 08:49:07 +00:00

Add foreman:export

This commit is contained in:
Daniel Barber 2015-08-19 18:05:15 +01:00
parent c211b4855c
commit 38f7a9a74f

View File

@ -51,6 +51,16 @@ namespace :deploy do
end end
namespace :foreman do namespace :foreman do
desc 'Export the Procfile to systemd'
task :export do
on roles(:app) do |host|
within current_path do
execute :pwd
execute :sudo, :foreman, 'export --app danbarberphoto --user danbarber systemd /etc/systemd/system'
end
end
end
desc 'Start the application services' desc 'Start the application services'
task :start do task :start do
on roles(:app) do |host| on roles(:app) do |host|
@ -66,6 +76,4 @@ namespace :foreman do
end end
end end
end end
before 'deploy:publishing', 'foreman:export'
end end