Skip to content

GetOlympus/Hestia-Capistrano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Olympus Hestia Capistrano RubyGem Version

Olympus Hestia Capistrano is a Ruby gem which provides a complete solution for deploying WordPress website easily with the Olympus package.


Olympus Component Capistrano 3 MIT


Features

  • Remote server automation tool with Capistrano
  • Best gem dependencies with capistrano-file-permissions and colorize
  • Database update and wp-cli integration
  • Tasks ready for pagespeed, web servers and varnish
  • And more...

Requirements

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

  1. Fork it (https://github.com/GetOlympus/Hestia-Capistrano/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. 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.

About

Ἑστία — Olympus Hestia is a Capistrano bundle Ruby gem which provides a complete solution for deploying WordPress website easily with the Olympus package.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages