aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb
blob: 367ae185b0e82aafd35ec59d1ff66c802b980ed1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
lock '3.10.1'

set :application, 'hmno'
set :repo_url, 'http://volse.anduin.net/gitrepos/hmnoweb.git'
set :linked_files, %w{
  config/initializers/refinery/core.rb
  config/initializers/secret_token.rb
  config/piwik.yml
  config/puma.rb
}
set :linked_dirs, %w{
  bin
  log
  tmp/cache
  tmp/index
  tmp/pids
  tmp/sockets
  vendor/bundle
  public/system
}
set :bundle_without, %w{development test deploy}.join(' ')
set :bundle_binstubs, -> { shared_path.join('bin') }
set :deploy_to, '/home/hmno/webapp/main'

set :pg_user, 'hmno_db_admin'
set :pg_system_user, 'pgsql'
set :pg_ask_for_password, true
set :pg_no_sudo, true

ask :piwik_site_id, 0
ask :piwik_url, 'https://piwik.example.com'

set :rbenv_type, :user
set :rbenv_ruby, File.read('.ruby-version').strip()
set :rbenv_prefix, "RBENV_ROOT=#{fetch(:rbenv_path)} RBENV_VERSION=#{fetch(:rbenv_ruby)} rbenv exec"
set :rbenv_map_bins, %w{rake gem bundle ruby rails}
set :rbenv_roles, :all