mirror of
https://github.com/danbee/danbarberphoto
synced 2025-03-04 08:49:07 +00:00
Add foreman:export
This commit is contained in:
parent
c211b4855c
commit
38f7a9a74f
@ -51,6 +51,16 @@ namespace :deploy do
|
||||
end
|
||||
|
||||
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'
|
||||
task :start do
|
||||
on roles(:app) do |host|
|
||||
@ -66,6 +76,4 @@ namespace :foreman do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
before 'deploy:publishing', 'foreman:export'
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user