Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #25 from mbtamuli/rename_to_ee4
Browse files Browse the repository at this point in the history
Rename script from eev4 to ee4
  • Loading branch information
mbtamuli authored Jan 23, 2018
2 parents c8a8d67 + 52284f3 commit 9840b63
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,27 @@ bash setup.sh
1. Create a WordPress site

```shell
eev4 create example.com --wp
ee4 create example.com --wp
```

2. Delete a site
```shell
eev4 delete example.com
ee4 delete example.com
```

3. Use wp-cli with a site
```shell
eev4 wp example.com theme list
ee4 wp example.com theme list
```

Run `eev4 --help` for all commands.
Run `ee4 --help` for all commands.

## Configuration

The sites get created at `/var/www`. You can view and change the configuration
for any of the sites at `/var/www/SITE/config`

Run `eev4 restart SITE` to load new configuration.
Run `ee4 restart SITE` to load new configuration.

## Contributing

Expand Down
12 changes: 6 additions & 6 deletions scripts/eev4 → scripts/ee4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

PROJECT_NAME="eev4"
PROJECT_NAME="ee4"
EE_INSTALL_DIR="/opt/$PROJECT_NAME"
ETC_HOSTS=/etc/hosts
LOCALHOST_IP="127.0.0.1"
Expand All @@ -19,7 +19,7 @@ runAsRoot() {

# help provides possible cli arguments
help () {
echo -e "\nUsage: eev4 [Global Options]"
echo -e "\nUsage: ee4 [Global Options]"
echo -e "\nGlobal Options:"
echo -e "\t[--help|-h ]\t\tprints this help"

Expand All @@ -29,16 +29,16 @@ help () {
echo -e "\trestart\t\t\tReload configuration for existing site"
echo -e "\twp\t\t\tUse wp-cli with a site"

echo -e "\nUsage: eev4 create SITE [Options]"
echo -e "\nUsage: ee4 create SITE [Options]"
echo -e "\nOptions:"
echo -e "\t[--wp ]\t\t\tWordPress Site"
echo -e "\t[--wpsubdir ]\t\tWordPress Multisite with Subdirectory"
echo -e "\t[--wpsubdomain ]\tWordPress Multisite with Subdomains"

echo -e "\nUsage: eev4 delete SITE"
echo -e "\nUsage: ee4 delete SITE"

echo -e "\nUsage: eev4 wp SITE [ARG...]"
echo -e "\te.g. eev4 wp example.com theme list"
echo -e "\nUsage: ee4 wp SITE [ARG...]"
echo -e "\te.g. ee4 wp example.com theme list"
}

singleWordPress() {
Expand Down
6 changes: 3 additions & 3 deletions scripts/setup
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

PROJECT_NAME="eev4"
PROJECT_NAME="ee4"
REPO_URL="https://github.com/EasyEngine/docker-compose-wordpress"
VERSION="master"

Expand Down Expand Up @@ -63,8 +63,8 @@ cloneRepo() {
# installScript installs the main script.
installScript() {
EE_INSTALL_DIR="/opt/$PROJECT_NAME"
EE_SCRIPT="scripts/eev4"
EE_SCRIPT_INSTALL_PATH="/usr/local/bin/eev4"
EE_SCRIPT="scripts/ee4"
EE_SCRIPT_INSTALL_PATH="/usr/local/bin/ee4"

rm -rf "$EE_INSTALL_DIR"
echo "Preparing to install into $EE_INSTALL_DIR"
Expand Down

0 comments on commit 9840b63

Please sign in to comment.