New issue

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

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

Already on GitHub? Sign in to your account

Add site update command #116

Open
mbtamuli opened this Issue Sep 11, 2018 · 2 comments

Comments

2 participants
@mbtamuli
Copy link
Member

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 mbtamuli created this issue from a note in v4 First Release (Backlog) Sep 11, 2018

@mbtamuli

This comment has been minimized.

Copy link
Member

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'

@kirtangajjar kirtangajjar moved this from Backlog to To-Do in v4 First Release Sep 21, 2018

@mbtamuli mbtamuli moved this from To-Do to In-Progress in v4 First Release Sep 27, 2018

@mbtamuli mbtamuli moved this from In-Progress to Backlog in v4 First Release Oct 9, 2018

@rahul286 rahul286 removed this from Backlog in v4 First Release Nov 19, 2018

@rahul286 rahul286 added this to Backlog in v4 Maintenance Releases Nov 29, 2018

@mrrobot47

This comment has been minimized.

Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment