From 160e2d8f0b1e4c3e9fe7f89300de22c5ef334833 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Fri, 15 Jan 2016 16:07:57 +0100 Subject: some cleanup: * move capistrano config files * remove useless files --- app/config/capistrano/deploy.rb | 23 +++++++++++++++++++++++ app/config/capistrano/deploy/production.rb | 0 app/config/capistrano/deploy/staging.rb | 2 ++ 3 files changed, 25 insertions(+) create mode 100644 app/config/capistrano/deploy.rb create mode 100644 app/config/capistrano/deploy/production.rb create mode 100644 app/config/capistrano/deploy/staging.rb (limited to 'app/config/capistrano') diff --git a/app/config/capistrano/deploy.rb b/app/config/capistrano/deploy.rb new file mode 100644 index 00000000..c2562965 --- /dev/null +++ b/app/config/capistrano/deploy.rb @@ -0,0 +1,23 @@ +# config valid only for current version of Capistrano +lock '3.4.0' + +set :application, 'wallabag' +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 + +set :composer_install_flags, '--no-dev --prefer-dist --no-interaction --optimize-autoloader' + +set :linked_files, %w{app/config/parameters.yml} +set :linked_dirs, %w{app/logs web/uploads data} + +set :keep_releases, 3 + +after 'deploy:finishing', 'deploy:cleanup' diff --git a/app/config/capistrano/deploy/production.rb b/app/config/capistrano/deploy/production.rb new file mode 100644 index 00000000..e69de29b diff --git a/app/config/capistrano/deploy/staging.rb b/app/config/capistrano/deploy/staging.rb new file mode 100644 index 00000000..ccd05b4d --- /dev/null +++ b/app/config/capistrano/deploy/staging.rb @@ -0,0 +1,2 @@ +set :branch, 'v2' +set :deploy_to, '/var/www/v2.wallabag.org/web/' -- cgit v1.2.3