We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca23245 + 89a4cf2 commit 944d692Copy full SHA for 944d692
config/deploy.rb
@@ -26,3 +26,15 @@ def deploy_config
26
}
27
28
set :branch, 'master'
29
+
30
+namespace :deploy do
31
+ before "git:check", :alert_deploying_to_stage do
32
+ on roles(:all) do |host|
33
+ colors = SSHKit::Color.new($stdout)
34
+ message = "You are about to deploy to #{fetch(:stage)}"
35
+ if fetch(:stage) == :production
36
+ info colors.colorize("\e[5m#{message}!\e[0m", :red)
37
+ end
38
39
40
+end
config/deploy/production.rb
@@ -0,0 +1 @@
1
+set :branch, ''
0 commit comments