deploy_wp is a project written in python to automate WordPress deployments. After years of installing WordPress from zip, I thought that I could simplify the process and make things a bit easier for myself. You can find deploy_wp on GitHub.
Requirements
- Linux
- Apache
- wp-cli
- mysql or mariadb
Things that work as of this writing:
- The code has comments, but doesn’t have docstrings.
- Creates a local user account with random pass
- Creates a DB for WP with random user/pass
- Creates WP user and random pass
- Returns local user and WP user pass
- Need to supply FQDN, username, root DB user password
Things that need manual work as of this writing:
- /var/www/<user account>/<domain>/public is not owned by the www-data user and thus you need to change ownership for WP to do automatic updates and install themes/plugins. Group ownership is not enough, it has to be the user.
- The apache conf file used in the template requires the site have an SSL cert – I use cert bot and thus that needs to be configured as a module.