Deploy - tetloose/tetloose-wp GitHub Wiki
Initial Setup
- Setup a database for Wordpress on Production / Staging
- Make sure Environment Wordpress Options are in
.env
Run yarn setup and select option 1/2.
Follow the prompts.
This will:
- SSH into the environment
- Download Wordpress via WP-CLI
- Config wp-config
- Rsync Theme, Plugins, Uploads
- Sync the Local database to the selected environment
Yarn Deploy
yarn deploy
Follow the prompts:
This will do the following:
- Run tests
- Update plugins + Wordpress
- Build the project
- Commit the project
- Rsync Theme to selected environment
Symlinks
You might not be able to change the servers document root. To get around this you can symlink the directory:
ssh project-namemv public public-bakln -s ~/project-name/ ~/public- remove
public-bak