From a6cb670788170724b41295dfcfaecacdba7f6c9a Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Thu, 23 May 2019 15:34:15 +0200 Subject: [PATCH] suite --- Capfile | 2 +- config/deploy/production.rb | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Capfile b/Capfile index ef93dfd..8cc52f1 100644 --- a/Capfile +++ b/Capfile @@ -30,8 +30,8 @@ require "capistrano/rvm" # require "capistrano/rbenv" # require "capistrano/chruby" require "capistrano/rails/assets" +require 'capistrano/nginx' require "capistrano/bundler" - require "capistrano/rails/migrations" # require "capistrano/passenger" diff --git a/config/deploy/production.rb b/config/deploy/production.rb index d2641bc..61f6543 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -4,8 +4,8 @@ set :stage, :production server "quartz.snlab.fr", user: "web", roles: %w{web app db} set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"] || "master" - - +puts stage_config_path +set :nginx_template, "#{stage_config_path}/#{fetch :stage}/nginx.conf.erb" # server-based syntax # ====================== @@ -43,6 +43,8 @@ set :deploy_to, "/srv/www/web/#{fetch(:application)}/" set :repo_url, "git@quartz.snlab.fr:nicolas/#{fetch(:application)}.git" +append :linked_files, "config/master.key" + # Custom SSH Options # ==================