- Is activeadmin based;
- WordPress blog domain name connects to Cloudflare Partner;
- WordPress host auto install;
- WordPress host distributed management;
- Clone an existing blog when create a new WordPress;
- Multi-language WordPress management;
- php proxy forwarding;
- Admin user role;
How to use my plugin.
Add this line to your application's Gemfile:
gem "wordpress", github: "seadfeng/cloud_wordpress"
gem "active_admin_role", github: "seadfeng/active_admin_role"
And then execute:
$ bundle install
$ rails webpacker:install
$ rake db:create
$ rails g active_admin:install
$ rails g wordpress:install
$ rake db:migrate
$ rake db:seed
$ rake wordpress:init
$ rake assets:precompile
$ rake railties:install:migrations FROM=wordpress
$ rake db:migrate
# config/application.rb
config.i18n.default_locale = :"zh-CN"
config.active_job.default_url_options = { host: "demo.cloudwp.xyz" }
Rails.application.routes.default_url_options[:host] = "demo.cloudwp.xyz"
# config/initializers/sidekiq.rb
Sidekiq.configure_server do |config|
config.redis = { url: 'redis://127.0.0.1:6379/2' }
end
Sidekiq.configure_client do |config|
config.redis = { url: 'redis://127.0.0.1:6379/2' }
end
Centos 8.0+
rails 6.0+ mysql 8.0+
https://github.com/rails/webpacker/blob/master/docs/engines.md
The gem is available as open source under the terms of the MIT License.