Skip to content

Instantly share code, notes, and snippets.

View PelagicDev's full-sized avatar

Jordan Godwin PelagicDev

  • CompanyCam
  • Wilmington, NC
  • 13:12 (UTC -04:00)
  • X @PelagicDev
View GitHub Profile
@PelagicDev
PelagicDev / account.rb
Created October 27, 2015 15:03 — forked from bookwyrm/account.rb
Cleaning up Rails app signup with Devise and Reform
class Account < ActiveRecord::Base
has_many :users
end
set :repository, "[email protected]:repo/repo.git"
set :user, "deploy"
set :use_sudo, false
set :scm, :git
set :keep_releases, 5
set :domain, "000.000.000.000"
set :application, "my_app"
set :rails_env, "production"
set :branch, "master"
set :deploy_to, "/var/www/#{application}"
## Capistrano v3
# /config/deploy.rb
set :application, '<site_name>' #example.com
set :use_sudo, false
set :build_dir, "build"
set :ssh_login, "<login_details>" #[email protected]
set :deploy_dir, "/var/www/#{fetch(:application)}"
namespace :middleman do