4bcd51d3 by Jeff Balicki

deploy

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 6e8953f7
---
BUNDLE_PATH: "vendor/bundle"
BUNDLE_DISABLE_SHARED_GEMS: "true"
BUNDLE_WITHOUT: "development:test"
.env
**/.DS_Store
/wp-content/uploads/*
......
source 'https://rubygems.org'
gem "capistrano", "~> 3.10"
gem 'capistrano-composer'
GEM
remote: https://rubygems.org/
specs:
airbrussh (1.3.0)
sshkit (>= 1.6.1, != 1.7.0)
capistrano (3.10.1)
airbrussh (>= 1.0.0)
i18n
rake (>= 10.0.0)
sshkit (>= 1.9.0)
capistrano-composer (0.0.6)
capistrano (>= 3.0.0.pre)
concurrent-ruby (1.0.5)
i18n (0.9.3)
concurrent-ruby (~> 1.0)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (4.2.0)
rake (12.3.0)
sshkit (1.15.1)
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
PLATFORMS
ruby
DEPENDENCIES
capistrano (~> 3.10)
capistrano-composer
BUNDLED WITH
1.15.1
set :application, 'explore-the-bruce'
set :repo_url, 'git@git.gotenzing.com:Jeremy/explore-the-bruce.git'
set :application, 'svi-staging'
set :repo_url, 'git@git.gotenzing.com:Jeremy/stellervista-Intranet.git'
# Branch options
# Prompts for the branch name (defaults to current branch)
......@@ -7,70 +7,74 @@ set :repo_url, 'git@git.gotenzing.com:Jeremy/explore-the-bruce.git'
# Hardcodes branch to always be master
# This could be overridden in a stage config file
set :branch, "production"
set :branch, :master
set :keep_releases, 2
set :deploy_to, -> { "/var/www/html/#{fetch(:application)}" }
set :deploy_to, -> { "/var/www/html/production/#{fetch(:application)}" }
# Use :debug for more verbose output when troubleshooting
set :log_level, :info
# Put all shared files/directories here (e.g. uploads that need to go on the NFS drive)
set :linked_files, fetch(:linked_files, []).push('.env', '.htaccess')
set :linked_dirs, fetch(:linked_dirs, []).push('wp-content/wflogs','wp-content/uploads', 'wp-content/storage', 'wp-content/cache')
set :linked_files, fetch(:linked_files, []).push('.env')
set :linked_dirs, fetch(:linked_dirs, []).push('wp-content/wflogs','wp-content/uploads', 'wp-content/storage', 'wp-content/languages', 'wp-content/cache' , 'wp-content/wp-rocket-config')
# namespace :deploy do
# desc 'Sync servers'
# task :sync do
# on roles(:web), in: :sequence, wait: 5 do
# execute("si #{fetch(:application)}")
# end
# end
# end
# namespace :deploy do
# desc 'Sync servers'
# task :sync_again do
# on roles(:web), in: :sequence, wait: 5 do
# execute("si #{fetch(:application)}")
# end
# end
# end
namespace :deploy do
desc 'Sync servers'
task :sync do
on roles(:web), in: :sequence, wait: 5 do
execute("si #{fetch(:application)}")
end
end
end
namespace :deploy do
desc 'Sync servers'
task :sync_again do
on roles(:web), in: :sequence, wait: 5 do
execute("si #{fetch(:application)}")
end
end
end
namespace :deploy do
desc 'Install composer packages'
task :install_theme_packages do
on roles(:web), in: :sequence, wait: 5 do
execute "cd '#{release_path}/wp-content/themes/understrap-child'; /usr/bin/php74 /home/tenzing_www/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader"
end
end
end
# namespace :deploy do
# desc 'Install composer packages'
# task :install_theme_packages do
# on roles(:web), in: :sequence, wait: 5 do
# execute "cd '#{release_path}'; /usr/bin/php70 /home/tenzing_www/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader"
# end
# end
# end
# namespace :deploy do
# desc 'Install composer packages'
# task :install_theme_packages do
# on roles(:web), in: :sequence, wait: 5 do
# execute "cd '#{release_path}/wp-content/themes/commonwell-corp'; /usr/bin/php70 /home/tenzing_www/bin/composer install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader"
# end
# end
# end
namespace :deploy do
desc 'Install composer packages in root'
task :install_packages do
on roles(:web), in: :sequence, wait: 5 do
execute "cd '#{release_path}'; /usr/bin/php74 /home/tenzing_www/composer.phar install --no-dev --prefer-dist --no-interaction --quiet --optimize-autoloader"
end
end
end
# Override `git#create_release` to handle submodules
# 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
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
# The above restart task is not run by default
# Uncomment the following line to run it on deploys if needed
......@@ -85,37 +89,45 @@ namespace :deploy do
end
end
# namespace :deploy do
# desc 'Update WordPress template root paths to point to the new release'
# task :update_option_paths do
# on roles(:app) do
# within fetch(:release_path) do
# if test :wp, :core, 'is-installed'
# [:stylesheet_root, :template_root].each do |option|
# # Only change the value if it's an absolute path
# # i.e. The relative path "/themes" must remain unchanged
# # Also, the option might not be set, in which case we leave it like that
# value = capture :wp, :option, :get, option, raise_on_non_zero_exit: false
# if value != '' && value != '/themes'
# execute :wp, :option, :set, option, fetch(:release_path).join('web/wp/wp-content/themes')
# end
# end
# end
# end
#namespace :deploy do
# desc 'set file permissions'
# task :set_permissions do
# on roles(:web), in: :sequence, wait: 5 do
# execute "cd '#{release_path}/'; chmod -Rf 777 .htaccess wordfence-waf.php wp-content/advanced-cache.php "
# end
# end
# end
namespace :deploy do
desc 'Update WordPress template root paths to point to the new release'
task :update_option_paths do
on roles(:app) do
within fetch(:release_path) do
if test :wp, :core, 'is-installed'
[:stylesheet_root, :template_root].each do |option|
# Only change the value if it's an absolute path
# i.e. The relative path "/themes" must remain unchanged
# Also, the option might not be set, in which case we leave it like that
value = capture :wp, :option, :get, option, raise_on_non_zero_exit: false
if value != '' && value != '/themes'
execute :wp, :option, :set, option, fetch(:release_path).join('web/wp/wp-content/themes')
end
end
end
end
end
end
end
# The above update_option_paths task is not run by default
# Note that you need to have WP-CLI installed on your server
# Uncomment the following line to run it on deploys if needed
# after 'deploy:publishing', 'deploy:update_option_paths'
# after 'deploy:updated', 'deploy:install_theme_packages'
# after 'deploy:updated', 'deploy:sync'
# after 'deploy:finished', 'deploy:sync_again'
after 'deploy:updated', 'deploy:install_packages'
after 'deploy:updated', 'deploy:sync'
#after 'deploy:updated', 'deploy:set_permissions'
after 'deploy:finished', 'deploy:sync_again'
......
......@@ -3,8 +3,7 @@ set :branch, "master"
# Simple Role Syntax
# ==================
role :web, %w{jeremy@can-1}
role :web, %w{tenzing_www@web-1}
# you can set custom ssh options
......
......@@ -14330,10 +14330,13 @@ figure.woocommerce-product-gallery__wrapper {
}
.hero-content p {
color: #fff;
font-size: 20px;
font-size: 16px;
line-height: 28px;
margin-bottom: 25px;
}
.hero-content h1 + p, .hero-content .h1 + p {
font-size: 20px;
}
#wrapper-footer {
background-color: #183668;
......@@ -14379,7 +14382,7 @@ figure.woocommerce-product-gallery__wrapper {
bottom: 0;
left: 14%;
width: 50%;
height: 60px;
height: 30px;
z-index: 99;
}
.page-template-login .hero-content {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -51,9 +51,10 @@
}
p {
color: #fff;
font-size: 20px;
font-size: 16px;
line-height: 28px;
margin-bottom: 25px;
}
h1 + p { font-size: 20px; }
}
......
......@@ -41,7 +41,7 @@
bottom: 0;
left:14%;
width: 50%;
height: 60px;
height: 30px;
z-index: 99;
}
......