Created
June 4, 2010 15:14
-
-
Save sstrudeau/425526 to your computer and use it in GitHub Desktop.
AT Community Vagrant setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * Download & install version 3.1.8 of VirtualBox [takes awhile] | |
| http://download.virtualbox.org/virtualbox/3.1.8/VirtualBox-3.1.8-61349-OSX.dmg | |
| * Install git using the git installer: http://code.google.com/p/git-osx-installer/ | |
| * Edit /private/etc/hosts file; add this line to the bottom: | |
| 127.0.0.1 local.community.apartmenttherapy.com local.community.unplggd.com local.community.ohdeedoh.com local.community.re-nest.com local.community.thekitchn.com | |
| * Open up Terminal.app | |
| * Install vagrant gem: | |
| sudo gem install vagrant | |
| * Add the "communityV2" box to your Vagrant box list [takes awhile] | |
| vagrant box add communityV2 http://vagrant.apartmenttherapy.com/communityV2.box | |
| * Choose a folder for your git-managed rails projects; I use ~/projects -- e.g., | |
| mkdir ~/projects | |
| * Checkout CommunityReboot to your projects folder, e.g., | |
| cd ~/projects | |
| git clone [email protected]:sstrudeau/CommunityReboot.git | |
| * Switch to the project folder, initialize vagrant for the project | |
| cd ~/projects/CommunityReboot | |
| vagrant init communityV2 | |
| * Start vagrant for the first time | |
| vagrant up | |
| * Set up empty development database | |
| vagrant ssh | |
| cd /vagrant | |
| rake db:migrate | |
| * Now visit the community site at: | |
| http://local.community.apartmenttherapy.com:8765 | |
| * Editing css template files in ~/projects/CommunityReboot will appear live, | |
| stylesheets and images are in "public" | |
| HTML templates are in app/views |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment