Ruby / Rails
- RVM
- Ruby 2.0.0
- Bundler
Source Control
- Git
Databases
- SQLite
- MySQL
- PostgreSQL (9.1)
- MongoDB
Caching
- Redis (2.6.5)
-
[VirtualBox] (https://www.virtualbox.org)
-
[Vagrant 1.1+] (http://vagrantup.com)
host $ git clone https://github.com/granvilleschmidt/my-rails-dev-box.git
host $ cd my-rails-dev-box
host $ vagrant up
BOOM! Everything is now ready for development. Magic right?
Note: It may take upwards of a few minutes the first time you run 'vagrant up', since it will need to download the base box.
After the installation has finished, you can access the magical box with
host $ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)
...
vagrant@my-rails-dev-box:~$
Given that port 3000 is the default port for new Rails apps, we went ahead and forwarded that port to the magical box, so you can access your web applications from your host machine.
Well it turns out that Vagrant mounts the my-rails-dev-box directory as /vagrant within the magical box. So all you'll need to do is navigate to the projects folder and start your normal project workflow.
vagrant@my-rails-dev-box:~$ cd /vagrant/projects
PostgreSQL
# login
sudo -u postgres psql postgres
# create user
sudo -u postgres createuser -s <username>
# set password
ALTER USER <username> WITH PASSWORD ‘<newpassword>’;