From 841e511a69153849d009782cf7dc696f49142759 Mon Sep 17 00:00:00 2001 From: Kostiantyn Kostiuk Date: Mon, 11 Sep 2023 11:13:50 +0300 Subject: [PATCH] fixup! fixup! fixup! Add stage env --- lib/capistrano/tasks/application.rake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/application.rake b/lib/capistrano/tasks/application.rake index 17e22ff8..c34117b6 100644 --- a/lib/capistrano/tasks/application.rake +++ b/lib/capistrano/tasks/application.rake @@ -29,7 +29,10 @@ namespace :application do task :restart do on roles(:app), in: :sequence, wait: 5 do within current_path do - if fetch(:rails_env) == 'staging' + p fetch(:rails_env) + p Rails.env + p ENV['RAILS_ENV'] + if Rails.env == 'staging' execute 'sudo systemctl restart stage-ikt.codelabs.site' else execute 'sudo systemctl restart ikt.codelabs.site'