-
Notifications
You must be signed in to change notification settings - Fork 37
Setting up WordPress projects at Getfives
The initial setup is common for the both workflows. Once you are done with it, continue with the pull or the push workflow setup.
- Create new Chisel WordPress with Frontend project
-
git clone
repository
- Run
yo chisel
to setup project locally - Select WordPress with Front-end
- Choose plugins WP Sync DB and WP Sync DB Media File Addon
- Commit & push
The pull workflow is recommended workflow and it assumes that all DB updates are done in WP admin on x5view.co and pulled to local database. This allows more developers to work on the same project without overriding their updates.
- Go to the project site at x5view.co
- Install WordPress. Enter the site details, use https://your-project-url.x5view.co as the site address
- Login to WordPress admin and activate plugins WP Sync DB and WP Sync DB Media File Addon
- Go to Tools / Migrate DB / Settings
- Check Accept pull requests allow this database to be exported and downloaded
- Login to WordPress admin of your local project
- Click on Pull Replace this site's db with remote db
- Copy connection info from the x5view.co site
- Enter Username & Password of the site
- In the Find & Replace section set up the https://your-project-url.x5view.co to be replaced with http://your-project-url.test (not localhost:3000)
- Check Save Migration Profile
- Click Migrate DB & Save
Make sure you make all content updates in WordPress admin on x5view.co first (add custom fields, change content etc.) and then pull the database using Migrate DB plugin to your local setup. Communicate with other developers frequently to ensure you are working on separate tasks to not overwrite each other's changes.
Note: After migration is done, you might be logged of from your local WP admin. This is normal.
If you are the only developer on the project you can do DB updates in WP admin in your local version and push to x5view.co database. Ensure that you switch to pull workflow to avoid DB overrides if other developer joins the project.
- Go to the project site at x5view.co
- Install WordPress. Enter the site details (they will be overridden with your local database later).
- Login to WordPress admin and activate plugins WP Sync DB and WP Sync DB Media File Addon
- Go to Tools / Migrate DB / Settings
- Set Accept push requests allow this database to be overwritten
- Login to WordPress admin of your local project
- Go to Tools / Migrate DB
- Click on Push Replace remote db with this site's db
- Copy connection info from the x5view.co site
- Enter Username & Password of the site
- In the Find & Replace section set up http://your-project-url.test (not localhost:3000) to be replaced with the https://your-project-url.x5view.co
- Check Save Migration Profile
- Click Migrate DB & Save