-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd2dd1d
commit 2f5724f
Showing
8 changed files
with
49 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
namespace :ikt_application do | ||
desc 'Start application' | ||
task :start do | ||
on roles(:app), in: :sequence, wait: 5 do | ||
within current_path do | ||
if fetch(:rails_env) == 'staging' | ||
execute 'sudo systemctl start stage-ikt.codelabs.site' | ||
else | ||
execute 'sudo systemctl start ikt.codelabs.site' | ||
end | ||
end | ||
end | ||
end | ||
|
||
desc 'Stop application' | ||
task :stop do | ||
on roles(:app), in: :sequence, wait: 5 do | ||
within current_path do | ||
if fetch(:rails_env) == 'staging' | ||
execute 'sudo systemctl stop stage-ikt.codelabs.site' | ||
else | ||
execute 'sudo systemctl stop ikt.codelabs.site' | ||
end | ||
end | ||
end | ||
end | ||
|
||
desc 'Restart application' | ||
task :restart do | ||
on roles(:app), in: :sequence, wait: 5 do | ||
within current_path do | ||
if fetch(:rails_env) == 'staging' | ||
execute 'sudo systemctl restart stage-ikt.codelabs.site' | ||
else | ||
execute 'sudo systemctl restart ikt.codelabs.site' | ||
end | ||
end | ||
end | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.