プロダクト開発日誌

技術のことなど

最新のRuby on Rails でアプリを作成

rails のInstall

bundle init

rails のgemを追加

# Gemfile
+ gem 'rails', github: 'rails/rails'

github.com

rails をInstall

bundle install --path vendor/bundle --jobs=4

rails のバージョンを確認

bundle exec rails -v
Rails 6.0.0.beta3

新アプリの作成

bundle exec rails new . -d postgresql --skip-turbolinks --skip-test

DBの作成

bundle exec rails db:create

開発用サーバの起動

bundle exec rails s

ブラウザからアクセス

http://localhost:3000/

f:id:synapse51:20190401174626p:plain 終わり