Skip to content

Instantly share code, notes, and snippets.

@Xiangshen-Meng
Last active August 29, 2015 14:19
Show Gist options
  • Save Xiangshen-Meng/06ed7b9a9dbb3261e131 to your computer and use it in GitHub Desktop.
Save Xiangshen-Meng/06ed7b9a9dbb3261e131 to your computer and use it in GitHub Desktop.

VirtualBox

Download VirtualBox and install https://www.virtualbox.org/wiki/Downloads

Vagrant Install

Download Vagrant and Install https://www.vagrantup.com/downloads.html

Install vagrant plugin

vagrant plugin install vagrant-omnibus

Clone git dev repo

git clone https://github.com/smartcamp/rails-dev.git
cd rails-dev
vagrant up

Clone Project repo

cd rails-dev
git clone git@github.com:smartcamp/boxil.git

Daily Usage

cd rails-dev
vagrant up
vagrant ssh
cd /vagrant/boxil

# STRT: First time only
rbenv install 2.1.0
gem install bundle
bundle install
cp config/database.yml.sample config/database.yml
rake db:create
rake db:migrate
rake db:seed
# END

rails s
http://localhost:3000/

Database

mysql -uroot
show databases;
use boxil_development
show tables;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment