forked from le-phare/capistrano-lephare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.rb
63 lines (45 loc) · 1.64 KB
/
defaults.rb
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# APC sleep (in second)
set :apc_sleep, 5
set :apc_monitor_file, "/usr/share/doc/php-apc/apc.php"
# htpasswd user
set :htpasswd_user, "admin.#{fetch(:application)}"
# htpasswd password
set :htpasswd_pwd, "lephare"
# htpasswd whitelist
set :htpasswd_whitelist, []
# Webroot
set :webroot, -> { "#{release_path}/web" }
# Tmp folder
set :tmp_dir, -> { "/tmp/#{fetch(:application)}-#{fetch(:stage)}" }
# max db backups
set :keep_db_backups, 5
# database config file
set :database_config_file, -> { "#{fetch(:shared_path)}/app/config/parameters.yml" }
# Rollbar token
set :rollbar_token, false
# Mysqldump arguments
set :mysqldump_args, "--opt --single-transaction"
# List of tables to exclude from the dump
set :dump_ignored_table_patterns, %w{__bkp_% __tmp_%}
set :dump_ignored_tables, %w{}
# Where to store the database backup
set :db_pull_dir, "app/Resources/database"
set :db_pull_filename, "#{fetch(:db_pull_dir)}/#{fetch(:stage)}.sql.bz2"
set :dbms, :mysql
# Default crontab location
set :crontab_file, -> { "#{release_path}/app/Resources/crontab" }
# Assets path to synchronize
set :assets_path, %w{web/compiled}
# Maintenance page
set :maintenance_page_source, "app/Resources/views/Exception/503.html"
set :maintenance_page_name, "maintenance/maintenance.html"
# Doctrine migration options
set :doctrine_migrations_options, "--allow-no-migration"
# Default Flow
after 'deploy:starting', 'composer:install_executable'
after 'deploy:publishing', 'deploy:doctrine:migrate'
after 'deploy:finished', 'deploy:notify:finished'
# Apache version
set :apache_version, "2.2"
# Let's Encrypt
set :letsencrypt_well_known_path, '/var/www/letsencrypt/www/.well-known'