Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add site update command #116

Closed
4 of 5 tasks
mbtamuli opened this issue Sep 11, 2018 · 2 comments
Closed
4 of 5 tasks

Add site update command #116

mbtamuli opened this issue Sep 11, 2018 · 2 comments
Assignees

Comments

@mbtamuli
Copy link
Contributor

mbtamuli commented Sep 11, 2018

  • Upgrade PHP version
  • Upgrade to ssl (reverse not supported)
  • Upgrade cache (enable/disable)
  • Upgrade between site types
    • Upgrade between WP types - WP subdom, WP subdir
@mbtamuli
Copy link
Contributor Author

mbtamuli commented Sep 20, 2018

PHP Versions

The PHP docker images will be named like - easyengine/php5.6:v4.0.0, easyengine/php7.0:v4.0.0, easyengine/php7.1:v4.0.0, easyengine/php7.2:v4.0.0

  • Take backup of PHP ini files.
  • Check if previous backup of PHP for the requested version exists and restore them.
  • Upgrade docker-compose.yml and start new container replacing the old one.

Upgrade to SSL

Upgrading to SSL would be generally simply requesting the SSL certificates for the site, for example - for HTML and PHP site types.

For site types where the application is known, example WP site type, we might also need to perform additional steps like -

  • Search-replace wp search replace 'http://example.com' 'https://example.com'

@mrrobot47
Copy link
Member

mrrobot47 commented Dec 5, 2018

A list of possible updates to be supported in v4.

SSL update

ee site update example.com --ssl=le
ee site update example.com --ssl=le --wildcard
ee site update example.com --ssl=self

HSTS toggling

ee site update example.com --hsts=on
ee site update example.com --hsts=off

PHP version update for Site type PHP and WP

ee site update example.com --php=5.6
ee site update example.com --php=7.0
ee site update example.com --php=7.1
ee site update example.com --php=7.2
ee site update example.com --php=7.3

Cache update for Site type PHP and WP

# Non-cache site to cache site
ee site update example.com --cache
ee site update example.com --cache --with-local-redis

# Disabling cache (Scope later)
ee site update example.com --no-cache

# Should future scope include switching between local and global redis cache?

Site Type Updates

# To Site Type PHP from HTML:
ee site update example.com --type=php
ee site update example.com --type=php --cache
ee site update example.com --type=php --with-db
ee site update example.com --type=php --cache --with-local-redis
ee site update example.com --type=php --with-db --local-db
ee site update example.com --type=php --with-db --local-db --cache --with-local-redis

## To Site Type WP from HTML or PHP:
ee site update example.com --type=wp
ee site update example.com --type=wp --mu=subdir
ee site update example.com --type=wp --mu=subdom
ee site update example.com --type=wp --dbhost=localhost --dbuser=username --dbpass=password
ee site update example.com --type=wp --local-db
ee site update example.com --type=wp --cache
ee site update example.com --type=wp --cache --with-local-redis

Site Type PHP internal

# without-db site to site with db
ee site update example.com --with-db
ee site update example.com --with-db --local-db

# with-db site to without-db site (Scope later)
ee site update example.com --without-db

# Should future scope include switching between local and global db?

Site Type WP internal

# Simple WP site to MU
ee site update example.com --mu=subdir
ee site update example.com --mu=subdom

# Should future scope include switching between local and global db?

Note: This is not an exhaustive list. Multiple update types can be clubbed together to form numerous amount of permutations and combinations of ee site update. For example PHP version change, SSL update and site type update can all be done in a single update command.

@rahul286 @radhe @mbtamuli @rahulsprajapati @kirtangajjar Please leave your comments.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants