Skip to content

spowers225/my-rails-dev-box

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Virtual Machine to Jump Start Your Ruby on Rails Development

What's in this magical box?

Ruby / Rails

  • RVM
  • Ruby 2.0.0
  • Bundler

Source Control

  • Git

Databases

  • SQLite
  • MySQL
  • PostgreSQL (9.1)
  • MongoDB

Caching

  • Redis (2.6.5)

What are the requirements to get up and running?

So the prerequisites are installed, how do I get started?

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.

This seems like voodoo. How do you expect me to work on a magical box from my 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

Additional Notes

PostgreSQL

# login
sudo -u postgres psql postgres

# create user
sudo -u postgres createuser -s <username>

# set password
ALTER USER <username> WITH PASSWORD ‘<newpassword>’;

About

My rails development box.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 38.7%
  • Puppet 31.2%
  • Ruby 30.1%