Setup Ruby on Rails (with Troubleshooting)

Hyeonseop-Noh·2022년 2월 25일
0

Prob 1. Permission denied and failed to install bundle

sol)

install 'rvm'

https://zwbetz.com/install-ruby-version-manager-on-mac/

run this command

$ rvm fix-permissions

Prob 2. 'rails server' command not working

errMsg1:

/Users/seop/.rvm/gems/ruby-3.0.0/gems/webpacker-5.4.3/lib/webpacker/configuration.rb:103:in `rescue in load': Webpacker configuration file not found /Users/seop/cdTask/config/webpacker.yml. Please run rails webpacker:install Error: No such file or directory @ rb_sysopen - /Users/seop/cdTask/config/webpacker.yml (RuntimeError)

errMsg2:

/Users/seop/.rvm/rubies/ruby-3.0.0/lib/ruby/3.0.0/psych.rb:581:in `initialize': No such file or directory @ rb_sysopen - /Users/seop/cdTask/config/webpacker.yml (Errno::ENOENT)

sol)

run this command

$ rails webpacker:install

Prob 3. Routing Error

errMsg:

No route matches [GET] "/posts/ssg-ssr"

sol)

open the link in the vscode terminal (not just type 'localhost:3000')

Result

profile
PlanBy Developer

0개의 댓글