Config deploy for production
This commit is contained in:
parent
910d36c1ac
commit
937ed38e80
5
Capfile
5
Capfile
@ -9,7 +9,7 @@ require 'capistrano/puma/workers'
|
||||
require 'capistrano/puma/jungle'
|
||||
require 'capistrano/rbenv'
|
||||
require 'capistrano/bundler'
|
||||
require 'capistrano/nginx'
|
||||
# require 'capistrano/nginx'
|
||||
require 'capistrano/rails/assets'
|
||||
require 'capistrano/rails/migrations'
|
||||
require 'capistrano/postgresql'
|
||||
@ -19,7 +19,8 @@ require 'capistrano/postgresql'
|
||||
# Includes tasks from other gems included in your Gemfile
|
||||
#
|
||||
# For documentation on these, see for example:
|
||||
#
|
||||
require "capistrano/scm/git"
|
||||
install_plugin Capistrano::SCM::Git#
|
||||
# https://github.com/capistrano/rvm
|
||||
# https://github.com/capistrano/rbenv
|
||||
# https://github.com/capistrano/chruby
|
||||
|
||||
@ -16,7 +16,13 @@ set :deploy_to, "/home/jesse/srv/thirteen-tien-len_#{fetch(:stage)}"
|
||||
# set :log_level, :debug
|
||||
# set :pty, true
|
||||
|
||||
set :linked_files, %w{config/database.yml .env}
|
||||
# set :linked_files, %w{config/database.yml .env}
|
||||
|
||||
# append :linked_files, "puma.rb"
|
||||
# append :linked_files, "config/master.key"
|
||||
# append :linked_files, "config/database.yml"
|
||||
append :linked_files, ".env"
|
||||
|
||||
set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system public/lift-calculator}
|
||||
|
||||
set :rbenv_type, :user # or :system, depends on your rbenv setup
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user