Skip to content

Instantly share code, notes, and snippets.

@momota
Last active May 25, 2017 11:10
Show Gist options
  • Save momota/9cfa44aa3871158aa168e7d2dcef9378 to your computer and use it in GitHub Desktop.
Save momota/9cfa44aa3871158aa168e7d2dcef9378 to your computer and use it in GitHub Desktop.

vagrant

Choose a box (vagrant template) you like.

 $ vagrant box add {title} {url}
 $ vagrant init {title}
 $ vagrant up

CentOS

rbenv

install git.

 $ sudo yum update
 $ sudo yum install git

install rbenv.

$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv

# optional
$ cd ~/.rbenv && src/configure && make -C src

$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile

$ ~/.rbenv/bin/rbenv init

$ type rbenv
#=> "rbenv is a function"

$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

install ruby-build.

 $ git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

ruby

$ rbenv install 2.4.1
$ rbenv local 2.4.1
$ rbenv rehash

Rails install.

$ gem install rails -v 5.0.0.1

We need JavaScript runtime.

$ sudo yum install epel-release
$ sudo yum install nodejs npm --enablerepo=epel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment