Skip to content

hcmkt/wp-support

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wp-support

Update tool for WordPress sites

Requirements

Usage

  1. If the connection information is not included in the env.json file, run the following command and then write the necessary information in the .env.json file.

    task add

    The necessary information are as follows.

    - name:             # unique name
      stg:
        host:           # Host written in ~/.ssh/config
        pass: xxxxx     # password for Host (if not password authentication, set any string)
        wp_dir:         # WordPress document root
        wp_cmd:         # wp command
        wp_log:         # log file path
      prod:
        host:           # Host written in ~/.ssh/config
        pass: xxxxx     # password for Host (if not password authentication, set any string)
        wp_dir:         # WordPress document root
        wp_cmd:         # wp command
        wp_log:         # log file path
  2. To set the required information in .env, execute the following command.

    task init -- <name> <environment>
  3. Next, execute the following command. This command will back up and version your plugins and themes, as well as activate WP's debug mode.

    task prepare
  4. If you have plugins or themes that you do not want to update, set update to none in plugin.json or theme.json.

  5. To view the update information, execute the following command.

    task show
  6. The following command will actually perform the upgrade.

    task update
  7. After the upgrade is complete, execute the following command. This command reverts wp-config.php back to its original state and gets a backup of the log.

    task clean
  8. To delete the log in server, execute the following command.

    task rmlog

About

Update tool for WordPress sites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published