初学者です。
dockerで開発環境を構築しています。
$ docker-compose run web bin/rails g scaffold User name:string
で、scaffoldを利用してuserテーブルを作成しようとしているのですがエラーが出てしまいます。
m1を使っているのですが、m1でのエラーのようです。
exemple@ExempleUser ror_docker % docker-compose run web bin/rails g scaffold User name:string Creating ror_docker_web_run ... done /usr/local/bundle/gems/rb-inotify-0.10.1/lib/rb-inotify/notifier.rb:69:in `initialize': Function not implemented - Failed to initialize inotify (Errno::ENOSYS) from /usr/local/bundle/gems/listen-3.0.8/lib/listen/adapter/linux.rb:31:in `new' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/adapter/linux.rb:31:in `_configure' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/adapter/base.rb:45:in `block in configure' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/adapter/base.rb:40:in `each' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/adapter/base.rb:40:in `configure' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/adapter/base.rb:63:in `start' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/backend.rb:28:in `start' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/listener.rb:67:in `block in <class:Listener>' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/fsm.rb:120:in `instance_eval' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/fsm.rb:120:in `call' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/fsm.rb:91:in `transition_with_callbacks!' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/fsm.rb:57:in `transition' from /usr/local/bundle/gems/listen-3.0.8/lib/listen/listener.rb:90:in `start' from /usr/local/bundle/gems/spring-watcher-listen-2.0.1/lib/spring/watcher/listen.rb:27:in `start' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application.rb:80:in `start_watcher' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application.rb:89:in `preload' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application.rb:135:in `run' from /usr/local/bundle/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from /usr/local/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' from -e:1:in `<main>' ERROR: 1
試したこと
以下のサイトを参考にし
https://github.com/evilmartians/terraforming-rails/issues/34
https://twitter.com/caffepocari/status/1357965145520001027
config/environments/development.rbを
#変更前 config.file_watcher = ActiveSupport::EventedFileUpdateChecker #変更後 config.file_watcher = ActiveSupport::FileUpdateChecker
に、変更してbuildしなおし、作成を試したのですが同じエラーとなってしまいます。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/09/18 01:09