-
-
Save swalkinshaw/124481c40a26c21c0047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, 'wolfzeit.com' | |
set :repo_url, 'git@bitbucket.org:gabrielwolf/wolfzeit.com.git' | |
# Branch options | |
# Prompts for the branch name (defaults to current branch) | |
ask :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp } | |
# Hardcodes branch to always be master | |
# This could be overridden in a stage config file | |
set :branch, :master | |
set :deploy_to, -> { "/home/jibazee/public_html/#{fetch(:application)}" } | |
set :theme_path, -> { "#{fetch(:release_path)}/web/app/themes/wolfzeit" } | |
set :npm_target_path, fetch(:theme_path) | |
set :npm_flags, '--silent' | |
set :grunt_target_path, fetch(:theme_path) | |
set :grunt_tasks, 'deploy' | |
set :log_level, :debug | |
set :pty, true | |
# Apache users with .htaccess files: | |
# it needs to be added to linked_files so it persists across deploys: | |
# set :linked_files, %w{.env web/.htaccess} | |
set :linked_files, %w{.env} # << Das hat der Entwickler von Bedrock/Roots gesagt muss weg | |
set :linked_dirs, %w{web/app/uploads} | |
namespace :deploy do | |
desc 'Restart application' | |
task :restart do | |
on roles(:app) do | |
sudo 'service', 'apache2', 'restart' | |
end | |
end | |
end | |
before 'deploy:updated', 'grunt' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment