diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 21:39:57 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-07-02 21:39:57 -0400 |
commit | 79d9cd3c5e3764db9d3506e1702042a7a7a4aea3 (patch) | |
tree | 3a83e1e9f4b307199b95de86a28f58eb0f40ae04 /config/deploy.rb | |
parent | 9cf94eec5ae98f750f9babc0c37373df87e3981c (diff) | |
download | thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.tar.gz thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.tar.bz2 thoughts-79d9cd3c5e3764db9d3506e1702042a7a7a4aea3.zip |
Set up Capistrano
Diffstat (limited to 'config/deploy.rb')
-rw-r--r-- | config/deploy.rb | 43 |
1 files changed, 43 insertions, 0 deletions
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 @@ | |||
1 | # config valid only for current version of Capistrano | ||
2 | lock "3.8.1" | ||
3 | |||
4 | set :application, "thoughts" | ||
5 | set :repo_url, "git@github.com:hatkirby/thoughts.git" | ||
6 | |||
7 | # Default branch is :master | ||
8 | # ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp | ||
9 | |||
10 | # Default deploy_to directory is /var/www/my_app_name | ||
11 | set :deploy_to, "/srv/www/thoughts" | ||
12 | |||
13 | # Default value for :format is :airbrussh. | ||
14 | # set :format, :airbrussh | ||
15 | |||
16 | # You can configure the Airbrussh format using :format_options. | ||
17 | # These are the defaults. | ||
18 | # set :format_options, command_output: true, log_file: "log/capistrano.log", color: :auto, truncate: :auto | ||
19 | |||
20 | # Default value for :pty is false | ||
21 | # set :pty, true | ||
22 | |||
23 | # Default value for :linked_files is [] | ||
24 | append :linked_files, "config/database.yml" | ||
25 | |||
26 | # Default value for linked_dirs is [] | ||
27 | append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/uploads" | ||
28 | |||
29 | # Default value for default_env is {} | ||
30 | # set :default_env, { path: "/opt/ruby/bin:$PATH" } | ||
31 | |||
32 | # Default value for keep_releases is 5 | ||
33 | # set :keep_releases, 5 | ||
34 | |||
35 | # rvm | ||
36 | set :rvm_type, :system | ||
37 | set :rvm_custom_path, '/usr/local/rvm' | ||
38 | |||
39 | # rails | ||
40 | set :rails_env, 'production' | ||
41 | set :conditionally_migrate, true | ||
42 | set :migration_role, :app | ||
43 | set :assets_roles, [:app] | ||