No commit activity in last 3 years
No release in over 3 years
AnyCable integration for Capistrano
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 1.17
>= 10.0
~> 0.63.0
~> 0.0.12
 Project Readme

Gem Version Build Status Documentation

Capistrano::Anycable

AnyCable RPC server integration for Capistrano.

Requirements

AnyCable >= 0.6.2

Installation

Add those lines to your application's Gemfile:

# To run daemonized `anycabled`
gem "daemons", "~> 1.3", require: false

gem "capistrano-anycable", group: :development

And then execute:

$ bundle

Usage

# Capfile
require "capistrano/anycable"

Configuration

Available configuration options (with defaults):

# Restart AnyCable RPC server after `deploy:restart` phase
set :anycable_default_hooks, true

# Capistrano roles to start AnyCable RPC server on
set :anycable_roles, :app
# Path to the root of your application
set :anycable_path, -> { release_path }
# Command to start AnyCable RPC server
set :anycable_command, -> { [:bundle, :exec, :anycabled] }

# Sets RAILS_ENV for AnyCable RPC server process
set :anycable_env, -> { fetch(:rack_env, fetch(:rails_env, fetch(:stage))) }
# AnyCable RPC server configuration parameters passed through enviroment,
# see https://docs.anycable.io/#/ruby/configuration?id=parameters
set :anycable_environment_variables, {}
# Path to anycable.yml
set :anycable_conf, nil

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/anycable/capistrano-anycable.

License

The gem is available as open source under the terms of the MIT License.