Giter Site home page Giter Site logo

cloud_wordpress's Introduction

Cloud_wordpress is use for wordpress site group management

  • 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;

Usage

How to use my plugin.

Installation

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

Update

$ rake railties:install:migrations FROM=wordpress
$ rake db:migrate

Application Config

# 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"

Sidekiq Config

# 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

Wordpress Host System dependence

Centos 8.0+

System dependence

rails 6.0+ mysql 8.0+

Dependencies

activeadmin

activeadmin_addons

active_admin_role

active_admin_import

Sidekiq Service

https://github.com/mperham/sidekiq/blob/07c0e1f4e60298deeab70999f6a33c86959f196a/examples/systemd/sidekiq.service

Webpacker Using in Rails engines

https://github.com/rails/webpacker/blob/master/docs/engines.md

License

The gem is available as open source under the terms of the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.