Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbtamuli committed Jun 28, 2018
2 parents 884d3b4 + 8254fc0 commit ef914e3
Show file tree
Hide file tree
Showing 7 changed files with 572 additions and 107 deletions.
100 changes: 99 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,99 @@
# site-command
# EasyEngine/site-command

Performs basic site functions in easyengine.

`site` command contains following subcommand
* [ee site create](#ee-site-create)
* [ee site delete](#ee-site-delete)
* [ee site disable](#ee-site-disable)
* [ee site enable](#ee-site-enable)
* [ee site info](#ee-site-info)
* [ee site list](#ee-site-list)
* [ee site start](#ee-site-start)
* [ee site stop](#ee-site-stop)
* [ee site restart](#ee-site-restart)
* [ee site reload](#ee-site-reload)

#### ee site create
Runs the site creation.

```bash
ee site create example.com --wp # install wordpress without any page caching
ee site create example.com --wpredis # install wordpress with page caching
ee site create example.com --wpsubir # install wpmu-subdirectory without any page caching
ee site create example.com --wpsubir --wpredis # install wpmu-subdirectory with page caching
ee site create example.com --wpsubdom # install wpmu-subdomain without any page caching
ee site create example.com --wpsubdom --wpredis # install wpmu-subdomain with page cache
```

#### ee site delete
Deletes an existing EasyEngine site including the webroot and the database.

_Warning: Doesn't ask for confirmation_

```bash
ee site delete example.com
```

#### ee site disable
Disables a website. It will stop all containers which will free up resources used by this site. The site's data stored in the disk will still be safe.

```bash
ee site disable example.com
```

#### ee site enable
Enables a website. It will start the docker containers of the website if they are stopped.

```bash
ee site enable example.com
```

#### ee site info
Display all the relevant site information, credentials and useful links.

```bash
ee site info example.com
```

#### ee site list
Lists the created websites.

```bash
ee site list
ee site list --enabled
ee site list --enabled --format=csv
```

#### ee site start
Starts services associated with site.

```bash
ee site start example.com # Defaults to all services
ee site start example.com --nginx
```

#### ee site stop
Stops services associated with site.

```bash
ee site stop example.com # Defaults to all services
ee site stop example.com --mailhog
```

#### ee site restart
Restarts containers associated with site. This action will have a few seconds of downtime.

```bash
ee site restart example.com # Defaults to all services
ee site restart example.com --nginx
```

#### ee site reload
Reload services in containers without restarting container(s) associated with site.

```bash
ee site reload example.com # Defaults to all services
ee site reload example.com --nginx
```

2 changes: 1 addition & 1 deletion site-command.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define( 'EE_CONFIG_TEMPLATE_ROOT', EE_ROOT . '/vendor/easyengine/site-command/templates/config' );
define( 'SITE_TEMPLATE_ROOT', __DIR__ . '/templates' );

if ( ! class_exists( 'EE' ) ) {
return;
Expand Down
Loading

0 comments on commit ef914e3

Please sign in to comment.