aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/capistrano
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-15 16:07:57 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-15 16:07:57 +0100
commit160e2d8f0b1e4c3e9fe7f89300de22c5ef334833 (patch)
treef47c30889471bab2c4a9549c7bce8d21886ecf44 /app/config/capistrano
parent1930c19d8214c05ceefac5ac011a6b6e7e4a983d (diff)
downloadwallabag-160e2d8f0b1e4c3e9fe7f89300de22c5ef334833.tar.gz
wallabag-160e2d8f0b1e4c3e9fe7f89300de22c5ef334833.tar.zst
wallabag-160e2d8f0b1e4c3e9fe7f89300de22c5ef334833.zip
some cleanup:
* move capistrano config files * remove useless files
Diffstat (limited to 'app/config/capistrano')
-rw-r--r--app/config/capistrano/deploy.rb23
-rw-r--r--app/config/capistrano/deploy/production.rb0
-rw-r--r--app/config/capistrano/deploy/staging.rb2
3 files changed, 25 insertions, 0 deletions
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 @@
1# config valid only for current version of Capistrano
2lock '3.4.0'
3
4set :application, 'wallabag'
5set :repo_url, 'git@github.com:wallabag/wallabag.git'
6
7set :ssh_user, 'framasoft_bag'
8server '78.46.248.87', user: fetch(:ssh_user), roles: %w{web app db}
9
10set :scm, :git
11
12set :format, :pretty
13set :log_level, :info
14# set :log_level, :debug
15
16set :composer_install_flags, '--no-dev --prefer-dist --no-interaction --optimize-autoloader'
17
18set :linked_files, %w{app/config/parameters.yml}
19set :linked_dirs, %w{app/logs web/uploads data}
20
21set :keep_releases, 3
22
23after '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
--- /dev/null
+++ b/app/config/capistrano/deploy/production.rb
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 @@
1set :branch, 'v2'
2set :deploy_to, '/var/www/v2.wallabag.org/web/'