Here's what you'll need to do to setup a new site locally...
NOTE: You won't be able to do this till I've added your SSH key and IP address to the server.
- Create a new repository based on the domain of the site.
- Run
git clone [email protected]:Mixd/wp-deploy.git <NEW PROJECT DOMAIN>
- run
bundle install
- run
bash config/prepare.sh
- run
git remote add origin <SSH URL FROM NEW GITHUB REPO>
- run
git push -u origin master
- run
git checkout -b development
- run
git push -u origin development
- Copy
config/database.example.yml
toconfig/database.yml
and add in your local database (you'll need to create one) as well as the database details from the spec doc (link in email). - Set your vhosts up as the domain found within the
wp_localurl
variable withinconfig/deploy.rb
Line 14. (this is required!) - run
bundle exec cap staging wp:setup:local
- run
bundle exec cap staging uploads:pull
- Log into
<LOCAL URL>/wordpress/wp-admin
(see spec doc for deets) - Go to
Settings > Permalinks
to refresh your permalinks.
Fin. :) Any questions let me know!