Skip to content

Commit

Permalink
Rails console capistrano
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilfe committed Apr 5, 2017
1 parent 028efcf commit e62f89b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ install_plugin Capistrano::SCM::Git
require "capistrano/puma"
install_plugin Capistrano::Puma # Default puma tasks
install_plugin Capistrano::Puma::Nginx # if you want to upload a nginx site template
require 'capistrano/rails/console'

# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ group :development do
gem 'capistrano-rails', require:false
gem 'capistrano-bundler', require:false
gem 'capistrano3-puma', require:false
gem 'capistrano-rails-console', require: false
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
Expand Down
6 changes: 6 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ GEM
capistrano-rails (1.2.3)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rails-console (2.2.0)
capistrano (>= 3.5.0, < 4.0.0)
sshkit-interactive (~> 0.2.0)
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
Expand Down Expand Up @@ -542,6 +545,8 @@ GEM
sshkit (1.13.1)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
sshkit-interactive (0.2.0)
sshkit (~> 1.9)
term-ansicolor (1.5.0)
tins (~> 1.0)
terminal-table (1.7.3)
Expand Down Expand Up @@ -592,6 +597,7 @@ DEPENDENCIES
capistrano
capistrano-bundler
capistrano-rails
capistrano-rails-console
capistrano-rvm
capistrano3-puma
decidim!
Expand Down
2 changes: 1 addition & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def deploysecret(key)

## Linked Files & Directories (Default None):
set :linked_files, %w{config/database.yml config/secrets.yml}
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/assets}
set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/assets}

## Public/uploads
set :linked_dirs, fetch(:linked_dirs) + %w{public/uploads}
Expand Down

0 comments on commit e62f89b

Please sign in to comment.