]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Updated Capistrano configuration 2513/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Sat, 29 Oct 2016 12:14:20 +0000 (14:14 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Sat, 29 Oct 2016 12:39:07 +0000 (14:39 +0200)
Capfile
Gemfile
Gemfile.lock
app/config/capistrano/deploy.rb

diff --git a/Capfile b/Capfile
index b80a5646b97a89a6c8db04db6d321ab65d22b862..cc807112044a606109297ded853e1ede4b2ded11 100644 (file)
--- a/Capfile
+++ b/Capfile
@@ -7,6 +7,8 @@ require 'capistrano/setup'
 # Include default deployment tasks
 require 'capistrano/deploy'
 
+require 'capistrano/composer'
+require 'capistrano/file-permissions'
 require 'capistrano/symfony'
 
 # Load custom tasks from `lib/capistrano/tasks` if you have any defined
diff --git a/Gemfile b/Gemfile
index 31f887a985dbc9d52062a71ea585dc5a187115da..233be899cb89e9168e5ea897a39b3407fd4603fa 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -1,5 +1,6 @@
 source "https://rubygems.org"
 
 gem 'capistrano',  '~> 3.4'
+gem 'capistrano-composer'
 gem 'capistrano-symfony', '~> 1.0.0.rc1'
-gem 'capistrano-composer', '~> 0.0.3'
+gem 'capistrano-file-permissions'
index aebbeba2708128534c27a3b4f828686b92f8bf0a..7b13b39914de8b9a8b9abfa34d08d2f2ec42d7f9 100644 (file)
@@ -29,8 +29,9 @@ PLATFORMS
 
 DEPENDENCIES
   capistrano (~> 3.4)
-  capistrano-composer (~> 0.0.3)
+  capistrano-composer
+  capistrano-file-permissions
   capistrano-symfony (~> 1.0.0.rc1)
 
 BUNDLED WITH
-   1.11.2
+   1.13.5
index f15eef3004415a421c0a5ae57a19f317854e2ea8..fee04620d683a2ead3d47dfafe5ac2ab79eced1b 100644 (file)
@@ -1,9 +1,4 @@
 # config valid only for current version of Capistrano
-lock '3.4.0'
-
-set :log_path, "var/logs"
-set :cache_path, "var/cache"
-set :symfony_console_path, 'bin/console'
 
 set :application, 'wallabag'
 set :repo_url, 'git@github.com:wallabag/wallabag.git'
@@ -11,8 +6,6 @@ set :repo_url, 'git@github.com:wallabag/wallabag.git'
 set :ssh_user, 'framasoft_bag'
 server '78.46.248.87', user: fetch(:ssh_user), roles: %w{web app db}
 
-set :scm, :git
-
 set :format, :pretty
 set :log_level, :info
 # set :log_level, :debug
@@ -23,4 +16,4 @@ set :linked_files, %w{app/config/parameters.yml}
 set :linked_dirs, [fetch(:log_path), "var/sessions", "web/uploads", "data"]
 set :keep_releases, 3
 
-after 'deploy:finishing', 'deploy:cleanup'
+after 'deploy:updated', 'symfony:cache:clear'