Socket
Book a DemoInstallSign in
Socket

railscluster

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

railscluster

0.1.0
bundlerRubygems
Version published
Maintainers
1
Created
Source

Railscluster Deployment

This Gem enables quick deployment to railscluster.nl hosting. We make some assumptions about your setup, these can be overwritten in your deploy.rb. See section settings below for details.

Usage

  • Add the gem to you Gemfile:
gem 'railscluster', git: 'https://github.com/nedforce/railscluster'
  • Setup Capistrano with bundle exec capify .
  • Replace the content of your deploy.rb with the following:
# Keep after settings
require 'railscluster/capistrano'
  • Customize any settings. See sections below.

  • Setup the environment: cap deploy:setup

  • Deploy: cap deploy

That should be all!

Settings

To deploy to RailsCluster only three settings need to be provided, these can be set in your deploy.rb as follows or be provided via prompt during deployment. Settings these settings need to be kept before the require.

set :account,     'account_name'
set :repository,  'https://github.com/your/application.git'
set :branch,      'master'

Further settings have defaults that should be fine in most cases, however you can override/set them as needed. The most important settings you can use:

:hard_restart # Restart by stop-start, defaults to true. Set to false to use a one-by-one restart.

:app_shared_children # Add folder and files to be symlinked into shared beyond the following defauts: tmp/pids, config/database.yml, public/uploads and private/uploads

:dbtype # Postgresql or Mysql, defaults to postgresql.

:scm    # Version control used, defaults to git.

:local_precompile # Precompile locally, defaults to false.

:airbrake_enabled # Load airbreak capistrano integration, defaults to false.

FAQs

Package last updated on 03 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.