From 4acb86c4c0b60829252f19a776cc0175a603448c Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Tue, 29 Oct 2019 05:33:55 -0700 Subject: [PATCH] Config deploy for production --- Capfile | 5 +++-- config/deploy.rb | 8 +++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Capfile b/Capfile index 19dd759..5b86070 100644 --- a/Capfile +++ b/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 diff --git a/config/deploy.rb b/config/deploy.rb index 21bd98a..c96c595 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -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