GithubHelp home page GithubHelp logo

josefjezek / easysetup-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from blueprintmrk/easysetup

0.0 2.0 0.0 412 KB

Command-line setup tool with Markdown config files using WP-CLI for WordPress

License: MIT License

Shell 100.00%

easysetup-1's Introduction

OpenWP EasySetup for WordPress

OpenWP EasySetup (es) is command-line setup tool with Markdown config files using WP-CLI

For WordPress Installation use EasyEngine

OpenWP EasySetup is tested on Ubuntu and Debian.

Installation

sudo apt-get install jq
git clone https://github.com/OpenWP/easysetup
cd easysetup
chmod +x es.sh
sudo cp es.sh /usr/local/bin/es

Markdown Config Files

Copy this config files to SITE_ROOT/setup (/var/www/example.com/setup)

mkdir /var/www/example.com/setup
sudo cp *.md /var/www/example.com/setup

Customize Config Files before run OpenWP EasySetup!

You can create whatever config files thanks to wildcard (commands*.md).

Changeable Variables

Variables are in file es.sh

LOG_DIR=/var/log/easysetup
ES_LOG=$LOG_DIR/es.log

DOCUMENT_ROOT=/var/www
DOCUMENT_USER=www-data
# Regex for exclude markdown and blank lines from config files
REGEX_MARKDOWN="^#|^-|^\*|^\`|^$"
SSL_DAYS=3650

SITE_ROOT=$DOCUMENT_ROOT/$DOMAIN

WP_CERT=$SITE_ROOT/cert
WP_CONFIG=$SITE_ROOT/wp-config.php
WP_ROOT=$SITE_ROOT/htdocs

WP_COMMANDS=$SITE_ROOT/setup/commands*.md
WP_CONSTANTS=$SITE_ROOT/setup/constants*.md
WP_OPTIONS=$SITE_ROOT/setup/options*.md
WP_GETOPTIONS=$SITE_ROOT/setup/getoptions*.md
WP_PLUGINS=$SITE_ROOT/setup/plugins*.md
WP_THEMES=$SITE_ROOT/setup/themes*.md
WP_VARIABLES=$SITE_ROOT/setup/variables*.md

SSL_EMAIL=admin@$DOMAIN
SSL_COUNTRY=$(echo "$DOMAIN" | rev | cut -d'.' -f1 | rev)

Usage

sudo es [Options] <domain>
  all <domain>: Run All Tasks
  commands <domain>: Run WP-CLI Commands
  constants <domain>: Set WP Constants
  cron <domain>: Set Crontab
  help: Show Help
  options <domain>: Set WP Options
  getoptions <domain>: Get WP Options in JSON Format
  plugins <domain>: Install WP Plugins
  ssl <domain>: Create Self-signed SSL Certificate
  themes <domain>: Install WP Themes
  update <domain>: Update WP Core, Plugins, Themes
  variables <domain>: Set Variables in WP Options

MIT License

The MIT License (MIT) Copyright (c) 2014 OpenWP openwp.github.io

easysetup-1's People

Contributors

josefjezek avatar

Watchers

 avatar  avatar

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.