Skip to content

Notify is sent before deploy itself #7

@jakoss

Description

@jakoss

I have this deploy config:

require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'
require 'mina/rollbar'

set :shared_dirs, fetch(:shared_dirs, []).push("public/uploads").push("log")
set :current_path, 'public_ruby'
set :term_mode, nil
set :rollbar_access_token, 'TOKEN' 

task :remote_environment do
  invoke :'rvm:use', '2.5.0'
end

# staging and production data

task :deploy do
  deploy do
    invoke :'git:clone'
    invoke :'deploy:link_shared_paths'
    invoke :'bundle:install'
    invoke :'rails:assets_precompile'
    invoke :'deploy:cleanup'

    on :launch do
      invoke :restart
      invoke :'rollbar:notify'
    end
  end
end

The problem is we are getting slack notify immediately after deploy start (Before even git:clone starts). No matter if deploy failed or succeeded. It's super odd. Have you any ideas or tips how to approach to this?

Versions:
mina: 1.2.3
mina-rollbar: 1.0.1

@edit: Notification get sent even if i run simulation deploy with -s flag!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions