aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/deploy.rb
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-30 08:49:00 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-09-30 08:49:00 +0200
commit24429857d8a431cd20077c5c0c3db81e2fedb1ac (patch)
tree7bea766f4de8057abe4309923c15861a70b12946 /config/deploy.rb
parentd2755b1c30318f370e7e903ebbd9d34bca11d939 (diff)
parente75b215a25dcb1f527bc2e6d43beedb41ae4ff68 (diff)
downloadwallabag-24429857d8a431cd20077c5c0c3db81e2fedb1ac.tar.gz
wallabag-24429857d8a431cd20077c5c0c3db81e2fedb1ac.tar.zst
wallabag-24429857d8a431cd20077c5c0c3db81e2fedb1ac.zip
Merge pull request #1439 from wallabag/v2-fix-deploy
fix Capistrano configuration
Diffstat (limited to 'config/deploy.rb')
-rw-r--r--config/deploy.rb45
1 files changed, 1 insertions, 44 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 67eb0c9c..be18ce5a 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -16,51 +16,8 @@ set :log_level, :info
16set :composer_install_flags, '--no-dev --prefer-dist --no-interaction --optimize-autoloader' 16set :composer_install_flags, '--no-dev --prefer-dist --no-interaction --optimize-autoloader'
17 17
18set :linked_files, %w{app/config/parameters.yml} 18set :linked_files, %w{app/config/parameters.yml}
19set :linked_dirs, %w{app/logs web/uploads} 19set :linked_dirs, %w{app/logs web/uploads data}
20 20
21set :keep_releases, 3 21set :keep_releases, 3
22 22
23after 'deploy:finishing', 'deploy:cleanup' 23after 'deploy:finishing', 'deploy:cleanup'
24
25# Default branch is :master
26# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
27
28# Default deploy_to directory is /var/www/my_app_name
29# set :deploy_to, '/var/www/my_app_name'
30
31# Default value for :scm is :git
32# set :scm, :git
33
34# Default value for :format is :pretty
35# set :format, :pretty
36
37# Default value for :log_level is :debug
38# set :log_level, :debug
39
40# Default value for :pty is false
41# set :pty, true
42
43# Default value for :linked_files is []
44# set :linked_files, fetch(:linked_files, []).push('config/database.yml', 'config/secrets.yml')
45
46# Default value for linked_dirs is []
47# set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'public/system')
48
49# Default value for default_env is {}
50# set :default_env, { path: "/opt/ruby/bin:$PATH" }
51
52# Default value for keep_releases is 5
53# set :keep_releases, 5
54
55namespace :deploy do
56
57 after :restart, :clear_cache do
58 on roles(:web), in: :groups, limit: 3, wait: 10 do
59 # Here we can do anything such as:
60 # within release_path do
61 # execute :rake, 'cache:clear'
62 # end
63 end
64 end
65
66end