Skip to content

blakeharv/vagrant-ruby-postgres-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aweomse Ubuntu VM with Postgres 9.1, Ruby 2.0, and ZSH

Don't mess around with wonky local development setups for Rails. Use a VM to streamline your workflow!

Features

  • Use Postgres for your local DB. Great for deploying to Heroku
  • Sets you up with a fresh development database ready for Rails
  • Sets up RVM, Bundler, and Ruby-2.0.0
  • Configures zsh + vcprompt (displays git branch info) for a better console experience
  • Use a shared folder to keep your codebase repo separate from the VM repo
  • NFS folder sharing helps keep your tests fast
  • Configuration options to speed up your VM

Setup

  1. Download Vagrant: http://www.vagrantup.com/
  2. Download VirtualBox: https://www.virtualbox.org/wiki/Downloads
  3. Install them!
  4. Clone this Repo $ git clone git@github.com:blakeharv/vagrant-ruby-postgres-vm.git
  5. From the cloned repo $ vagrant up
  6. During the install you may be prompted for a password to enable folder sharing. On OSX this is just your regular account password (like when you login into your computer or install software).
  7. Log into the VM $ vagrant ssh

The default Postgres settings will configure 1 user and database. You can use the following settings in your Rails database.yml (See the customization settings below for configuring your databases and users)

development:
  adapter: postgresql
  encoding: latin1
  database: development
  pool: 5
  username: vagrant
  password: password

Customization

The following places can be customized to fit your individual needs:

Credits / Inspiration

About

A Vagrant VM setup with Postgres 9.1, Ruby 2.0.0, zsh, vim, and vcprompt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors