From 76eefd0ffee736a60db7a8b9d726e93645c2eac4 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sat, 22 Apr 2017 01:16:47 -0700 Subject: [PATCH] add support for deploying specific branch or commit --- config/deploy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/deploy.rb b/config/deploy.rb index 94569ff5a..8e9e4b043 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -6,3 +6,4 @@ set :scm, :git set :deploy_to, "/var/www/danbooru2" set :rbenv_ruby, "2.3.1" set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle') +set :branch, ENV.fetch("branch", "master") \ No newline at end of file