Skip to content

Instantly share code, notes, and snippets.

@lukewhitehouse
Created February 24, 2016 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukewhitehouse/721e7676fdd655827281 to your computer and use it in GitHub Desktop.
Save lukewhitehouse/721e7676fdd655827281 to your computer and use it in GitHub Desktop.
Setting up a new wpdeploy project locally

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.

  1. Create a new repository based on the domain of the site.
  2. Run git clone git@github.com:Mixd/wp-deploy.git <NEW PROJECT DOMAIN>
  3. run bundle install
  4. run bash config/prepare.sh
  5. run git remote add origin <SSH URL FROM NEW GITHUB REPO>
  6. run git push -u origin master
  7. run git checkout -b development
  8. run git push -u origin development
  9. Copy config/database.example.yml to config/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).
  10. Set your vhosts up as the domain found within the wp_localurl variable within config/deploy.rb Line 14. (this is required!)
  11. run bundle exec cap staging wp:setup:local
  12. run bundle exec cap staging uploads:pull
  13. Log into <LOCAL URL>/wordpress/wp-admin (see spec doc for deets)
  14. Go to Settings > Permalinks to refresh your permalinks.

Fin. :) Any questions let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment