Skip to content

Instantly share code, notes, and snippets.

@lukewhitehouse
Last active February 24, 2016 10:24
Show Gist options
  • Save lukewhitehouse/1ba7dbfa17a00036137b to your computer and use it in GitHub Desktop.
Save lukewhitehouse/1ba7dbfa17a00036137b to your computer and use it in GitHub Desktop.
Setting up an existing wp-deploy project locally

Here's what you'll need to do to set the site up locally...

NOTE: You won't be able to do this till I've added your SSH key and IP address to the server.

  1. run git clone --recursive <SSH URL FROM GITHUB>
  2. Go into the dev branch - git checkout development
  3. run bundle install
  4. 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).
  5. Set your vhosts up as the domain found within the wp_localurl variable within config/deploy.rb Line 14. (this is required!)
  6. run bundle exec cap staging wp:setup:local
  7. run bundle exec cap staging db:pull
  8. run bundle exec cap staging uploads:pull
  9. Log into <LOCAL URL>/wordpress/wp-admin (see spec doc for deets)
  10. 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