Giter Club home page Giter Club logo

capistrano-tasks's Introduction

Capistrano task

Install

Add this line to your application's Gemfile:

gem 'capistrano_tasks', git: '[email protected]:itapps/capistrano_tasks.git'

Mattermost

Add this line to Capfile

require 'capistrano_tasks/mattermost'

Options

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

Usage

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"

NPM

Add this line to Capfile

require 'capistrano_tasks/npm'

Usage

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"

SPA

Add this line to Capfile

require 'capistrano_tasks/spa'

Options

Add options to deploy.rb

set :spa_build_directory, 'spa build directory' # spa build directory

Usage

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.