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 # ==================