Builds a Rails environment and site on top of a Vagrant vm. This repo can be used as is to get a Rails site up and running quickly or as a template for your own Rails projects.
It provides rvm preinstalled as the vagrant user, with bundle and rake already installed.
- This project's source
- Not windows (haven't tested it yet, but you can try)
- Ruby >= 1.9.2 (do yourself a favor and use rvm to manage your ruby environment)
- vagrant gem 0.9.x
- chef gem
- librarian gem
Start on the host by provisioning and logging into a vm:
host$ git clone git://github.com/xforty/vagrant-rails.git host$ cd vagrant-rails host$ librarian-chef install host$ vagrant up host$ vagrant ssh
Then build and install a drupal site on the vm:
vm$ cd /vagrant vm$ bundle init
By default the remote origin is the github vagrant-rails. It is designed to function after you clone it for development and testing purposes. This means you can commit to your local repository and track upstream changes. This is useful for single user development workflow. However we also kept in mind people work on teams and need to share these repositories for each project they are working on. To do this we recommend the following.
- Rename the remote origin:
git remote rename origin github
- Create your bare repo
- Add your own remote origin:
git remote add origin [your_repo_name]
- Set your master to the remote origin:
git config branch.master.remote origin
- Push your changes to your bare repo:
git push origin master
If you are cloning directly from your repo it won't contain the original
github project. In that case, you will need to add the upstream remote:
git remote add github git://github.com/xforty/vagrant-drupal.git
It is common to modify the Vagrantfile. We encourage you to read through the comments in the Vagrantfile as well as the official Vagrant documentation for other possible configurations.
Maintained by xforty technologies