-
Notifications
You must be signed in to change notification settings - Fork 284
Using Vagrant
Vagrant is great. With it you can easily get OneBody running on your local PC or Mac without having to install all the necessary software. You can be hacking on open source software in only a few minutes!
Vagrant is free and runs on Windows, Mac, and Linux.
- Install VirtualBox. It's free and it runs on Windows, Mac, and Linux.
- Install Vagrant on your host machine.
- Install Git.
- Clone the repository to your host machine:
git clone git://github.com/churchio/onebody.git
(If you're on Mac, you can use GitHub for Mac. If you're on Windows, you can use GitHub for Windows.) - In your host terminal, change to the project directory:
cd onebody
- Run vagrant:
vagrant up
Now visit the site running in development mode at http://localhost:8080.
You can use your favorite text editor to make changes inside the onebody
directory. Changes should show in your browser after refreshing.
Whenever gems are updated or new migrations are needed, you can just run vagrant provision
.
To gain access to the vagrant box terminal, run vagrant ssh
to get an active SSH session. Once inside, the OneBody directory is mirrored at /vagrant
inside the Vagrant box.
To restart the Rails server, type touch tmp/restart.txt
. Or you can vagrant reload
to restart the dev box.
For more help with Vagrant, check out the Vagrant docs.