-
Notifications
You must be signed in to change notification settings - Fork 283
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. It works by launching a virtual machine with Ubuntu Linux on it and running OneBody there. But don't worry -- most of the time you don't have to think about this running VM, as everything is pretty automatic.
- Install VirtualBox. It's free and it runs on Windows, Mac, and Linux.
- Install Vagrant on your host machine.
- Install Git.
- If you're on Mac, you can use GitHub for Mac.
- If you're on Windows, you can use GitHub for Windows.
- Clone the repository to your host machine:
git clone git://github.com/churchio/onebody.git
- In your host terminal, change to the project directory:
cd onebody
- Run vagrant:
vagrant up
Visit the site running in development mode at localhost:3000.
You can use your favorite text editor to make changes inside the onebody
directory on your host machine (no need to edit anything "inside" the running VM). 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 vagrant ssh -c "sudo systemctl restart thin"
. Or you can vagrant reload
to restart the dev box.
See Using MailCatcher.
For more help with Vagrant, check out the Vagrant docs.