WP workflow (Český Hosting VMS)
- Apache
- PHP7
- MySQL
- Composer
- GIT
- SSH Keys + authorized_keys (Public Key) in .ssh folder on server
- Create a DEV environment
- Connect with SSH GIT archive on STAGING
- GIT Pull on STAGING
php composer.phar install
on STAGING- Create a database on STAGING
- upload .env file and change it accordingly (database...). Do not forget change localhost to 127.0.0.1
- Install WP
- Activate DB Sync + DB Media
- Sync DB from DEV to Staging
- GIT Pull on Staging on updates
PS: Make sure "dist" folder in theme directory is not in .gitignore file and is in the repository