Setup Existing Website for Local Dev
Clone an existing website from our github repo and set it up for local development.
There are three main component's we need to get the website up and running locally:
- Clone the project from our GitHub repo into your CMS2 www directory. Note: You might need to be added as a collaborator to be able to find the project on GitHub.
- Get an SQL dump of the live or dev database and set up on your local SQL server. Usually the naming pattern replaces .'s with _'s
- Then run the setup scripts for creating the procedures / triggers. Unfortunately we can't copy these between the db servers as they use different user / definer properties, so we need to recreate them on first install
- Copy the media down from the live server to the local [website]/var/media folder
- Then log into your vagrant console (vagrant ssh) and run the "grunt switch" command to select the site
Rebuild Tree - SQL Create Script
Copy paste this into your sql connection and run it to create the procedure on your local db Learn more
Update Tree - SQL Create Script
Copy paste this into your sql connection and run it to create the procedure on your local db Learn more