Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Speeding-Up Rails Dev Onboarding

Speeding-Up Rails Dev Onboarding

In this talk, I outline some of examples of how to help speed-up your rails development onboarding including an example of setting up a development environment using Vagrant and Chef.

Example files are located here: https://gist.github.com/DeLongShot/fbbda14df20699b2fcae

You can check out more at: http://adamdelong.com/

Adam DeLong

January 05, 2015
Tweet

More Decks by Adam DeLong

Other Decks in Programming

Transcript

  1. -*- mode: ruby -*- # vi: set ft=ruby : VAGRANTFILE_API_VERSION

    = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "precise64" config.vm.network "forwarded_port", guest: 3000, host: 3333 config.vm.synced_folder ".", "/vagrant", type: "nfs" config.vm.network "private_network", ip: "192.168.33.10" config.berkshelf.enabled = true config.omnibus.chef_version = "11.16.0" config.vm.provision "chef_solo" do |chef| chef.add_recipe "apt" chef.add_recipe "build-essential" chef.add_recipe “chruby::system” chef.add_recipe "postgresql::client" chef.add_recipe "postgresql::server" chef.add_recipe "nginx" chef.add_recipe "phantomjs" chef.json = { "chruby" => { "rubies" => { "2.1.3" => true }, "default" => "2.1.3" }, "postgresql" => { “version” => “9.4”, "password" => { "postgres" => "example" } } } end end