Olympus Hestia Capistrano is a Ruby gem which provides a complete solution for deploying WordPress website easily with the Olympus package.
Features
- Remote server automation tool with Capistrano
- Best gem dependencies with
capistrano-file-permissions
andcolorize
- Database update and wp-cli integration
- Tasks ready for pagespeed, web servers and varnish
- And more...
Requirements
- colorize ~ https://github.com/fazibear/colorize
- composer ~ https://github.com/capistrano/composer
- file-permissions ~ https://github.com/capistrano/file-permissions
Initialization
All default settings are defined in the lib/capistrano/vars/defaults.rb
file. Please, refer to it to see exactly how the defaults are set up.
If you want to override any setting, just set it on your app/deploy/config.rb
file.
# [optional] Setup files and dirs to symlink, setup web user to chown
set :files, fetch(:files, ['app/config/env.php', 'app/config/salt.php', 'web/.htaccess', 'web/robots.txt'])
set :dirs, fetch(:dirs, ['web/statics/languages', 'web/statics/plugins', 'web/statics/uploads'])
set :stage_user, fetch(:stage_user, 'www-data')
# Setup Capistrano
set :log_level, fetch(:log_level, :debug)
set :keep_releases, fetch(:keep_releases, 3)
# Setup Project
set :application, fetch(:application, 'olympus-capified')
set :localurl, fetch(:localurl, 'https://www.domain.tld')
Installation
You can easily install the Olympus Hestia Capistrano gem simply:
# In your Capfile
require 'capistrano/olympus-hestia-capistrano'
# In your Gemfile
gem 'capistrano', '~> 3.4'
gem 'olympus-hestia-capistrano', '~> 0.0.10'
Deployment
Depending on your stage files, you can deploy simply thanks to the following command line:
bundle exec cap production deploy
Release History
See CHANGELOG.md for all details.
Contributing
- Fork it (https://github.com/GetOlympus/Hestia-Capistrano/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
Publishing
To publish a new gem
file, follow these steps:
gem build olympus-hestia-capistrano.gemspec
gem push olympus-hestia-capistrano-x.x.x.gem
Built with ♥ by Achraf Chouk ~ (c) since a long time.