rails-template
Getting Started
-
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install OpenSSL, Cmake, PostgreSQL:
brew install openssl cmake postgres
-
Install RVM and Ruby:
curl -sSL https://get.rvm.io | bash -s stable # In a new session (restart your terminal or open new tab): rvm install 2.5.1 --default --with-openssl-dir=`brew --prefix openssl`
-
Set up RVM gemset:
rvm gemset create cool_app rvm use 2.5.1@cool_app gem update --system gem update bundler gem install nokogiri -- --use-system-libraries=true --with-xml2-include=`xcrun --show-sdk-path`/usr/include/libxml2 gem install rails
-
Create Rails application:
rails new cool_app --skip-coffee -f -B -d postgresql -m https://raw.githubusercontent.com/seouri/rails-template/master/template.rb