Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Up ruby/rails environment #3

Open
1 of 7 tasks
boonrs opened this issue Feb 16, 2016 · 10 comments
Open
1 of 7 tasks

Set Up ruby/rails environment #3

boonrs opened this issue Feb 16, 2016 · 10 comments
Assignees

Comments

@boonrs
Copy link
Member

boonrs commented Feb 16, 2016

With the help of @swinter2011:

  • Install brew: a package manager for Mac
  • Install ruby-install: allows multiple versions of ruby to be installed on your machine, this is good for when projects use different versions
  • Install chruby: helps switch between ruby versions
  • Check out masalaware-api and create a .ruby-version file for the correct version
  • Use ruby-install to install the correct version of ruby
  • Run bundler which installs dependencies for the project
  • Run the project and verify it works.

I haven't done this in a while so it's quite possible I'm missing steps, fill them in as needed. If my steps are vague, fill them in with more detail. Your documentation of your process is a gift to the next person who sets up their environment.

@144mdgross
Copy link
Collaborator

step 1: paste this in your terminal to install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

@144mdgross
Copy link
Collaborator

step 3: follow the instructions that terminal gives you to finish installing brew.
step 2: paste this in your terminal to install "ruby-install"
brew install ruby-install

@144mdgross
Copy link
Collaborator

step 4: paste this in your terminal to install chruby.
brew install chruby

@144mdgross
Copy link
Collaborator

  • note that the second comment should say step 2, step 3.....not step 3, step2. follow order from top to bottom of list, not numeric order (for that comment at least...)

@swinter2011
Copy link
Collaborator

We created a .ruby version file in the masalaware-api directory and specified the ruby version in the file as the ruby version that Steve used to setup the rails app initials ruby-2.0.0-p481

@swinter2011
Copy link
Collaborator

To find the ruby version for the current project we used ruby -v

@swinter2011
Copy link
Collaborator

We used ruby -v in the masalaware-api directory

@swinter2011
Copy link
Collaborator

In addition to the steps on the chruby page, I also had to add 'source ~/.bashrc' to .bash_profile to get chruby working

@144mdgross
Copy link
Collaborator

AFTER INSTALLING RUBY

  • install the bundler gem
    • gem install bundler

@144mdgross
Copy link
Collaborator

AFTER INSTALLING THE BUNDLER...
run the command to use the bundler
bundle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants