-
Notifications
You must be signed in to change notification settings - Fork 24
Rails
Casey Watts edited this page Feb 2, 2014
·
1 revision
- Make sure you've followed the Computer Setup instructions
- Open your terminal
- cd to where you keep your code, e.g.:
cd ~/code
- Make a new directory for the project / app
mkdir project_name
cd project_name
- Initialize the folder for Vagrant
vagrant init rails
- Open
Vagrantfile
and add the following line within the Vagrant configuration section:
config.vm.network :forwarded_port, guest: 3000, host: 3000
- Save the file.
- Start Vagrant
vagrant up
- SSH into Vagrant
vagrant ssh
- cd to the vagrant shared folder
cd /vagrant
- Create a new rails app:
rails new app_name
- cd into the rails folder:
cd app_name
- Open the rails app folder in sublime text, and edit the
Gemfile
. Uncomment the line that looks like:
gem 'therubyracer', :platforms => :ruby
- In the vagrant machine, update your bundle:
bundle install
That's it!
- Home
- Assignments
- Resources
- Piazza
- Last Summer's Wiki-Curriculum
- Code Examples from Class are in this course repository