From 79d9cd3c5e3764db9d3506e1702042a7a7a4aea3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 2 Jul 2017 21:39:57 -0400 Subject: Set up Capistrano --- config/deploy.rb | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 config/deploy.rb (limited to 'config/deploy.rb') diff --git a/config/deploy.rb b/config/deploy.rb new file mode 100644 index 0000000..16c6257 --- /dev/null +++ b/config/deploy.rb @@ -0,0 +1,43 @@ +# config valid only for current version of Capistrano +lock "3.8.1" + +set :application, "thoughts" +set :repo_url, "git@github.com:hatkirby/thoughts.git" + +# Default branch is :master +# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp + +# Default deploy_to directory is /var/www/my_app_name +set :deploy_to, "/srv/www/thoughts" + +# Default value for :format is :airbrussh. +# set :format, :airbrussh + +# You can configure the Airbrussh format using :format_options. +# These are the defaults. +# set :format_options, command_output: true, log_file: "log/capistrano.log", color: :auto, truncate: :auto + +# Default value for :pty is false +# set :pty, true + +# Default value for :linked_files is [] +append :linked_files, "config/database.yml" + +# Default value for linked_dirs is [] +append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads" + +# Default value for default_env is {} +# set :default_env, { path: "/opt/ruby/bin:$PATH" } + +# Default value for keep_releases is 5 +# set :keep_releases, 5 + +# rvm +set :rvm_type, :system +set :rvm_custom_path, '/usr/local/rvm' + +# rails +set :rails_env, 'production' +set :conditionally_migrate, true +set :migration_role, :app +set :assets_roles, [:app] -- cgit 1.4.1