You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Guys,
First I would like to thank you for you creating this amazing Gem, but I did all the steps in my code and from the terminal when stating deploy to the server I saw in the terminal
slack:starting & slack:finished but actually didn't got the notification on slack !!
so what is missing in my deploy.rb file?!!
this is my deploy.rb credentials:
require 'capistrano/slack'
set :deployer do
name = `git config user.name`.strip
name = `whoami`.strip if name == ''
name
end
set :slack_token, 'https://hooks.slack.com/services/............etc ' # comes from inbound webhook integration
set :slack_room, '#deploying' # room
set :slack_subdomain, 'astm' # if your subdomain is astm.slack.com
set :slack_emoji, ':shipit:' # ":rocket:"
set :slack_deploy_defaults, false
set :slack_application, "myApp"
set :slack_username, "Deploying on server"
namespace :slack do
task :starting do
slack_connect "#{fetch(:deployer)} *started* deploying to *#{fetch(:stage)}*. :rocket:"
end
task :finished do
slack_connect "#{fetch(:deployer)} *finished* deploying to *#{fetch(:stage)}*. :star2:"
end
end
before 'deploy:update_code', 'slack:starting'
after 'deploy:restart', 'slack:finished'
And in my Gemfile I added & bundle install
group :development do
# For Notifying slack
gem 'capistrano-slack'
end
The text was updated successfully, but these errors were encountered:
Hello Guys,
First I would like to thank you for you creating this amazing Gem, but I did all the steps in my code and from the terminal when stating deploy to the server I saw in the terminal
slack:starting & slack:finished but actually didn't got the notification on slack !!
so what is missing in my deploy.rb file?!!
this is my deploy.rb credentials:
And in my Gemfile I added &
bundle install
The text was updated successfully, but these errors were encountered: