Add this line to your application's Gemfile:
gem 'capistrano_tasks', git: '[email protected]:itapps/capistrano_tasks.git'
Add this line to Capfile
require 'capistrano_tasks/mattermost'
Add options to deploy.rb
set :mattermost, 'mattermost incoming hook' # mattermost incoming hook
set :mattermost_username, 'mattermost username' # overwrite mattermost incoming hook username
set :mattermost_channel, 'mattermost channel' #channel you want to notify
set :mattermost_notify_me, 'mattermost channel' # put blank string if you don't want to be notify ot channel you want to notify
Run a remote mattermost to info start deploy with:
cap production mattermost:info_start
Run a remote mattermost to info done deploy with:
cap production mattermost:info_start
Add to deploy.rb if you want it to run when deploying app
before :starting, "mattermost:info_start"
after :publishing, "mattermost:info_done"
Add this line to Capfile
require 'capistrano_tasks/npm'
Run a remote npm install with:
cap production npm:current:install
Run a remote npm run build with:
cap production npm:current:run_build
Add to deploy.rb if you want it to run when deploying app
before :updated, "npm:release:install"
before :updated, "npm:release:run_build"
Add this line to Capfile
require 'capistrano_tasks/spa'
Add options to deploy.rb
set :spa_build_directory, 'spa build directory' # spa build directory
Run a remote download .htaccess with:
cap production spa:current:download_htaccess
Add to deploy.rb if you want it to run when deploying app
before :updated, "spa:release:download_htaccess"