项目作者: nicoren-tangkoko

项目描述 :
Capistrano plugin to deploy wordpress
高级语言: Ruby
项目地址: git://github.com/nicoren-tangkoko/wp-capistrano.git
创建时间: 2021-03-29T08:33:47Z
项目社区:https://github.com/nicoren-tangkoko/wp-capistrano

开源协议:MIT License

下载


wp-capistrano

Capistrano tasks used to deploy wordpress project.

Install

  1. #add this line in your Gemfile
  2. gem 'wp-capistrano3'
  1. #add this line in your Capfile
  2. require 'capistrano/wp-capistrano'

Then run

  1. bundle install
  2. #or bundle update

set following variables in your deploy.rb
These variables will be used to generate wp_config.php at first deployment.
And will install an empty wordpress

  1. set :wp_db_name, "wp_db_name"
  2. set :wp_db_password, "wp_db_password"
  3. set :wp_db_user, "wp_db_user"
  4. set :wp_db_host, "127.0.0.1"
  5. #ADMIN LOCALE
  6. set :wp_locale, "en_GB"
  7. set :wp_url, "wp_domain"
  8. set :wp_title, "wp site name"
  9. set :wp_admin_user, "admin"
  10. set :wp_admin_password, "password"
  11. set :wp_admin_email, "admin@xxxx.com"

Workflow

The default capistrano workflow is used with the addition of theses tasks.

  1. before 'deploy:check:linked_files', 'wp-capistrano:create_wp_config'
  2. before 'deploy:updating', 'wp-capistrano:download_wordpress'
  3. after 'wp-capistrano:download_wordpress', 'wp-capistrano:install_wordpress'
  4. after 'wp-capistrano:download_wordpress', 'wp-capistrano:update_wordpress'
  5. after 'wp-capistrano:install_wordpress', 'wp-capistrano:install_plugins'