diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-29 14:14:20 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-29 14:39:07 +0200 |
commit | c4b3933bae583da1bdd4b97471bdcca08ab92312 (patch) | |
tree | 2fd72776b251a0106201137cb6320be250cbdf5f | |
parent | 267087d969e68e2f5abcb18f526120d835d9a686 (diff) | |
download | wallabag-c4b3933bae583da1bdd4b97471bdcca08ab92312.tar.gz wallabag-c4b3933bae583da1bdd4b97471bdcca08ab92312.tar.zst wallabag-c4b3933bae583da1bdd4b97471bdcca08ab92312.zip |
Updated Capistrano configuration
-rw-r--r-- | Capfile | 2 | ||||
-rw-r--r-- | Gemfile | 3 | ||||
-rw-r--r-- | Gemfile.lock | 5 | ||||
-rw-r--r-- | app/config/capistrano/deploy.rb | 9 |
4 files changed, 8 insertions, 11 deletions
@@ -7,6 +7,8 @@ require 'capistrano/setup' | |||
7 | # Include default deployment tasks | 7 | # Include default deployment tasks |
8 | require 'capistrano/deploy' | 8 | require 'capistrano/deploy' |
9 | 9 | ||
10 | require 'capistrano/composer' | ||
11 | require 'capistrano/file-permissions' | ||
10 | require 'capistrano/symfony' | 12 | require 'capistrano/symfony' |
11 | 13 | ||
12 | # Load custom tasks from `lib/capistrano/tasks` if you have any defined | 14 | # Load custom tasks from `lib/capistrano/tasks` if you have any defined |
@@ -1,5 +1,6 @@ | |||
1 | source "https://rubygems.org" | 1 | source "https://rubygems.org" |
2 | 2 | ||
3 | gem 'capistrano', '~> 3.4' | 3 | gem 'capistrano', '~> 3.4' |
4 | gem 'capistrano-composer' | ||
4 | gem 'capistrano-symfony', '~> 1.0.0.rc1' | 5 | gem 'capistrano-symfony', '~> 1.0.0.rc1' |
5 | gem 'capistrano-composer', '~> 0.0.3' | 6 | gem 'capistrano-file-permissions' |
diff --git a/Gemfile.lock b/Gemfile.lock index aebbeba2..7b13b399 100644 --- a/Gemfile.lock +++ b/Gemfile.lock | |||
@@ -29,8 +29,9 @@ PLATFORMS | |||
29 | 29 | ||
30 | DEPENDENCIES | 30 | DEPENDENCIES |
31 | capistrano (~> 3.4) | 31 | capistrano (~> 3.4) |
32 | capistrano-composer (~> 0.0.3) | 32 | capistrano-composer |
33 | capistrano-file-permissions | ||
33 | capistrano-symfony (~> 1.0.0.rc1) | 34 | capistrano-symfony (~> 1.0.0.rc1) |
34 | 35 | ||
35 | BUNDLED WITH | 36 | BUNDLED WITH |
36 | 1.11.2 | 37 | 1.13.5 |
diff --git a/app/config/capistrano/deploy.rb b/app/config/capistrano/deploy.rb index f15eef30..fee04620 100644 --- a/app/config/capistrano/deploy.rb +++ b/app/config/capistrano/deploy.rb | |||
@@ -1,9 +1,4 @@ | |||
1 | # config valid only for current version of Capistrano | 1 | # config valid only for current version of Capistrano |
2 | lock '3.4.0' | ||
3 | |||
4 | set :log_path, "var/logs" | ||
5 | set :cache_path, "var/cache" | ||
6 | set :symfony_console_path, 'bin/console' | ||
7 | 2 | ||
8 | set :application, 'wallabag' | 3 | set :application, 'wallabag' |
9 | set :repo_url, 'git@github.com:wallabag/wallabag.git' | 4 | set :repo_url, 'git@github.com:wallabag/wallabag.git' |
@@ -11,8 +6,6 @@ set :repo_url, 'git@github.com:wallabag/wallabag.git' | |||
11 | set :ssh_user, 'framasoft_bag' | 6 | set :ssh_user, 'framasoft_bag' |
12 | server '78.46.248.87', user: fetch(:ssh_user), roles: %w{web app db} | 7 | server '78.46.248.87', user: fetch(:ssh_user), roles: %w{web app db} |
13 | 8 | ||
14 | set :scm, :git | ||
15 | |||
16 | set :format, :pretty | 9 | set :format, :pretty |
17 | set :log_level, :info | 10 | set :log_level, :info |
18 | # set :log_level, :debug | 11 | # set :log_level, :debug |
@@ -23,4 +16,4 @@ set :linked_files, %w{app/config/parameters.yml} | |||
23 | set :linked_dirs, [fetch(:log_path), "var/sessions", "web/uploads", "data"] | 16 | set :linked_dirs, [fetch(:log_path), "var/sessions", "web/uploads", "data"] |
24 | set :keep_releases, 3 | 17 | set :keep_releases, 3 |
25 | 18 | ||
26 | after 'deploy:finishing', 'deploy:cleanup' | 19 | after 'deploy:updated', 'symfony:cache:clear' |