-
Notifications
You must be signed in to change notification settings - Fork 3
Setting up wpframe
chrisvanpatten edited this page Dec 4, 2012
·
5 revisions
Starting a new wpframe project is easy, if you follow the right steps.
NOTE: We have a very much in beta bootstrap script that will accomplish many of these steps for you. USE AT YOUR OWN DISCRETION. If it breaks things, WE ARE NOT RESPONSIBLE.
If you use that script, you can totally ignore steps 1.1-1.9, 2.1, and 2.4 below. If you like it, let us know, and we'll keep working on making it even better.
- Create a new Git repo
- Add a file to it (any file, as long as its filename doesn't conflict with any of the files in wpframe)
- Make a commit!
git remote add wpframe git://github.com/vanpattenmedia/wpframe.git
git fetch wpframe
git merge --squash wpframe/master
git submodule update --init
git commit -m 'Added wpframe'
bundle install
- Yay! You've got the files and the gems!
- In
project-root/config/
, renameproject.example.yml
,database.example.yml
,assets.example.yml
ands3.example.yml
removing the.example
bit. - Fill in the appropriate information in each of these files. (If you don't have a git repo URL yet, that's okay, just make sure you remember to add it before you deploy).
- If you don't want S3 support, remove it by deleting the
s3.yml
file entirely, and removing the appropriate line from the nginx config. - Update the last few lines in
.gitignore
to reference the appropriate theme path.
- Run
vagrant status
to make sure you're error free. If you still have errors at this point, file an issue and let us help you figure out why (be sure to include a copy of the error). - If you get a "not yet created" message, you can proceed. Run
vagrant up
. - Once Vagrant finishes successfully, edit the
Vagrantfile
. Move the comment on lines 48 so line 47 is commented out instead, and line 48 is uncommented. - Run
vagrant reload
. - You should be all set! Visit
http://dev.[your-url-here]/wp/wp-admin/
to begin the installation.
We'll have documentation on how to deploy coming in the next few weeks.