1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rails環境構築 mac

Last updated at Posted at 2020-06-07

#Rails環境構築 
バージョン
macOS 10.15.5
ruby 2.5.8
rails 5.2.4

##概要
Railsの環境構築をする度にググっても、情報が多過ぎるので迷ってしまいました。

今回はtechpitさんの記事に沿って環境構築をしました。
参考記事
https://www.techpit.jp/courses/ruby-on-rails/lectures/9644688

途中で
Gem::FilePermissionErrorでエラーになった場合は
先頭にsudoを付けて、再度実行する。
参考記事
https://qiita.com/NAKKA-K/items/6b5de9459b3c952f5b2e

therubyracerでエラーに場合は
$ brew install v8-315 $ bundle config --local build.libv8 --with-system-v8 $ bundle config --local build.therubyracer --with-v8-dir=$(brew --prefix v8-315)を実行する
参考記事
https://qiita.com/shimx/items/32e85093f21e673c7127

ActiveRecord::NoDatabaseError (FATAL: role "root" does not exist):でエラーになった場合は
database.ymlを開いて、development:の部分に
username: 登録した名前(ターミナルの行の先頭名前) assword: <%= ENV['BIG-TWEET_DATABASE_PASSWORD'] %>を追加して、再度エラーになったコマンドを実行する
参考記事
https://qiita.com/NAKKA-K/items/6b5de9459b3c952f5b2e

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?