Skip to content

omnifroodle/Rails-4-Vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails 4 on Vagrant

This Vagrant includes:

  • Ubuntu 12.04
  • Postgres 9.1
  • Rails 4.0.0 pre
  • Ruby 1.9.3p392 (soon to be upgraded to Ruby 2.0.0p0)

Instructions

Virtual Machine

Ensure you have Oracle VirtualBox installed (Vagrant also supports VMWare and Amazon AWS with additional configuration).

Ensure that you have the vagrant gem installed on your system or host environment.

Vagrant

rbenv/rvm

gem install vagrant

system ruby

sudo gem install vagrant

Your Rails App

You have a couple options here. With and existing Rails app, you can move an existing Rails application into the app/ folder.

For a new Rais 4 app you'll want to get right to it. First check the 'manifests/base.pp' puppet file and update the Postgres database name to match your future app name.

Next, start the vagrant virtual machine (You'll see some errors, I still assume the rails app is running when I start the VM). Once you get the command prompt back ssh into the vagrant vm and create your app.

vagrant up
vagrant ssh

inside the vagrant

cd /vagrant
rails new MY_APP
mv MY_APP app

[http://localhost:8980] will forward to port 3000 on the vagrant box.

About

A vagrant image suitable for hosting a Rails 4 app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published