Giter Club home page Giter Club logo

vagrant-rails's Introduction

DESCRIPTION

Builds a Rails environment and site on top of a Vagrant vm. This repo can be used as is to get a Rails site up and running quickly or as a template for your own Rails projects.

It provides rvm preinstalled as the vagrant user, with bundle and rake already installed.

REQUIREMENTS

BASIC USAGE

  1. Start on the host by provisioning and logging into a vm:

     host$ git clone git://github.com/xforty/vagrant-rails.git
     host$ cd vagrant-rails
     host$ librarian-chef install
     host$ vagrant up
     host$ vagrant ssh
    
  2. Then build and install a drupal site on the vm:

     vm$ cd /vagrant
     vm$ bundle init
    

ADVANCED USAGE

By default the remote origin is the github vagrant-rails. It is designed to function after you clone it for development and testing purposes. This means you can commit to your local repository and track upstream changes. This is useful for single user development workflow. However we also kept in mind people work on teams and need to share these repositories for each project they are working on. To do this we recommend the following.

  • Rename the remote origin: git remote rename origin github
  • Create your bare repo
  • Add your own remote origin: git remote add origin [your_repo_name]
  • Set your master to the remote origin: git config branch.master.remote origin
  • Push your changes to your bare repo: git push origin master

If you are cloning directly from your repo it won't contain the original github project. In that case, you will need to add the upstream remote: git remote add github git://github.com/xforty/vagrant-drupal.git

It is common to modify the Vagrantfile. We encourage you to read through the comments in the Vagrantfile as well as the official Vagrant documentation for other possible configurations.

RESOURCES


Maintained by xforty technologies

vagrant-rails's People

Contributors

sumbach avatar

Stargazers

Jack Ketcham avatar Bing Xia avatar Joshua Wood avatar Rodrigo Webler avatar James Cole avatar Tatsuya Takamura avatar Hicham Abdelkaoui avatar Gustavo Warmling Teixeira avatar Blake Hilscher avatar Raul Gracia avatar Gianluca Bargelli avatar Jonathan Pettersson avatar Chris Jackson avatar Carl Tashian avatar Raphael Miranda avatar Eric Skogen avatar Sergey Vlasov avatar

Watchers

Matt Edlefsen avatar Justin Fedick avatar David King avatar James Cloos avatar Paul avatar  avatar Andrew Jatras avatar  avatar

vagrant-rails's Issues

`vagrant up` fails

[default] Box ubuntu-11.10-server-amd64 was not found. Fetching box from specified URL...
[vagrant] Downloading with Vagrant::Downloaders::HTTP...
[vagrant] Downloading box: http://dl.dropbox.com/u/56687100/ubuntu-11.10-server-amd64.box
[vagrant] Extracting box...
[vagrant] Verifying box...
[vagrant] Cleaning up downloaded box...
[default] Importing base box 'ubuntu-11.10-server-amd64'...
[default] The guest additions on this VM do not match the install version of
VirtualBox! This may cause things such as forwarded ports, shared
folders, and more to not work properly. If any of those things fail on
this machine, please update the guest additions and repackage the
box.

Guest Additions Version: 4.1.6
VirtualBox Version: 4.1.16
[default] Matching MAC address for NAT networking...
[default] Clearing any previously set forwarded ports...
[default] Forwarding ports...
[default] -- 22 => 2222 (adapter 1)
[default] -- 3000 => 4567 (adapter 1)
[default] Creating shared folders metadata...
[default] Clearing any previously set network interfaces...
[default] Booting VM...
[default] Waiting for VM to boot. This can take a few minutes.
[default] VM booted and ready for use!
[default] Mounting shared folders...
[default] -- v-root: /vagrant
[default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks
[default] -- v-csc-2: /tmp/vagrant-chef-1/chef-solo-2/cookbooks
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` v-csc-2 /tmp/vagrant-chef-1/chef-solo-2/cookbooks

And...

[Steveloveless@sloveless-mbp:projects]$ gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.24
  - RUBY VERSION: 1.9.2 (2012-04-20 patchlevel 320) [x86_64-darwin11.4.0]
  - INSTALLATION DIRECTORY: /Users/Steveloveless/.rvm/gems/ruby-1.9.2-p320@shapado
  - RUBY EXECUTABLE: /Users/Steveloveless/.rvm/rubies/ruby-1.9.2-p320/bin/ruby
  - EXECUTABLE DIRECTORY: /Users/Steveloveless/.rvm/gems/ruby-1.9.2-p320@shapado/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-darwin-11
  - GEM PATHS:
     - /Users/Steveloveless/.rvm/gems/ruby-1.9.2-p320@shapado
     - /Users/Steveloveless/.rvm/gems/ruby-1.9.2-p320@global
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => true
     - :bulk_threshold => 1000
     - :sources => ["http://rubygems.org/"]
     - "gem" => "--no-ri --no-rdoc"
  - REMOTE SOURCES:
     - http://rubygems.org/

Repackage basebox

Repackage basebox after initial chef provision. This will make it go faster.

problem with file system

mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant v-csc-2 /tmp/vagrant-chef-1/chef-solo-2/cookbooks

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

mount -t vboxsf -o uid=id -u vagrant,gid=id -g vagrant v-csc-2 /tmp/vagrant-chef-1/chef-solo-2/cookbooks

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.