submodule
This commit is contained in:
parent
4a1320ec74
commit
80f8bcc7ec
|
@ -5,7 +5,7 @@ set :application, "mint-lgbt"
|
||||||
set :repo_url, "https://fem.mint.lgbt/mint.lgbt/home.git"
|
set :repo_url, "https://fem.mint.lgbt/mint.lgbt/home.git"
|
||||||
|
|
||||||
# Default branch is :master
|
# Default branch is :master
|
||||||
ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
|
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp
|
||||||
|
|
||||||
# Default deploy_to directory is /var/www/my_app_name
|
# Default deploy_to directory is /var/www/my_app_name
|
||||||
set :deploy_to, "/opt/www/mint-lgbt"
|
set :deploy_to, "/opt/www/mint-lgbt"
|
||||||
|
|
12
lib/capistrano/tasks/git.rake
Normal file
12
lib/capistrano/tasks/git.rake
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
namespace :git do
|
||||||
|
desc 'Copy repo to releases'
|
||||||
|
task create_release: :'git:update' do
|
||||||
|
on roles(:all) do
|
||||||
|
with fetch(:git_environmental_variables) do
|
||||||
|
within repo_path do
|
||||||
|
execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue