GithubHelp home page GithubHelp logo

292-virtual-machines-with-vagrant's Introduction

RailsCasts Episode #292: Virtual Machines with Vagrant

http://railscasts.com/episodes/292-virtual-machines-with-vagrant

Commands used in episode

  # setup vagrant
  gem install vagrant
  vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
  rails new todo
  cd todo
  vagrant init lucid32
  mate Vagrantfile
  vagrant up
  vagrant ssh

  # inside virtual machine
  whoami
  cd /vagrant
  ruby -v
  sudo apt-get update
  sudo apt-get install build-essential zlib1g-dev curl git-core sqlite3 libsqlite3-dev

  # install rbenv and Ruby 1.9.2
  git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
  echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
  echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
  source .bash_profile
  git clone git://github.com/sstephenson/ruby-build.git
  cd ruby-build/
  sudo ./install.sh 
  rbenv install 1.9.2-p290

  # get Rails running
  cd /vagrant
  gem install bundler
  rbenv rehash
  bundle
  bundle exec rails s

  # vagrant commands
  vagrant reload
  vagrant status
  vagrant suspend
  vagrant resume
  vagrant halt
  vagrant up
  vagrant package
  vagrant destroy

292-virtual-machines-with-vagrant's People

Contributors

ryanb avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.