Skip to content

Instantly share code, notes, and snippets.

@yo-iida
Last active October 11, 2016 15:44
Show Gist options
  • Save yo-iida/6288fb4d1a336390d367f0ffefe57ed1 to your computer and use it in GitHub Desktop.
Save yo-iida/6288fb4d1a336390d367f0ffefe57ed1 to your computer and use it in GitHub Desktop.
自分用rails new手順
# 前提で必要なこと
# rubyのインストール(rbenv経由)
# gem install bundler
# gem install rails --no-ri --no-rdoc
# 先にgithubでリポジトリ作っておく。readmeとかgitignoreとか作ってくれるので。
git clone [email protected]:yo-iida/example.git
bundle init
# ここでGemfileに必要なgemを記述しておく
bundle install --path vendor/bundle --jobs=4
# ここでrubyのインストールが必要な場合は下記をやる
# brew upgrade ruby-build
# rbenv install x.x.x
# rbenv local x.x.x
bundle exec rails new . -BT
bundle exec rails generate rspec:install
git add .
git commit -m "first commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment