Last active
October 11, 2016 15:44
-
-
Save yo-iida/6288fb4d1a336390d367f0ffefe57ed1 to your computer and use it in GitHub Desktop.
自分用rails new手順
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 前提で必要なこと | |
# 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