Peço desculpas pela pergunta de iniciante em Ruby, pois acabei de abandonar minhas noções de importação do NodeJS e estou tentando usar um import_script modificado em Ruby.
Estou recebendo o seguinte erro require: cannot load such file -- rb-inotify ao tentar executar o script. Note que estou executando o Discourse no Bitnami (Google Cloud) — sei que não é o método suportado, mas, como um total iniciante em Ruby, não tenho certeza se o erro está relacionado ao Bitnami ou se estou apenas perdendo algum conceito fundamental do Ruby…
Traceback (most recent call last):
json_mt.rb: Bootsnap::LoadPathCache::FallbackScan
18: from json_mt.rb:4:in `<main>'
17: from json_mt.rb:4:in `require'
16: from /opt/bitnami/apps/discourse/htdocs/script/import_scripts/base.rb:16:in `<top (required)>'
15: from /opt/bitnami/apps/discourse/htdocs/script/import_scripts/base.rb:16:in `require_relative'
14: from /opt/bitnami/apps/discourse/htdocs/config/environment.rb:4:in `<top (required)>'
13: from /opt/bitnami/apps/discourse/htdocs/config/environment.rb:4:in `require'
12: from /opt/bitnami/apps/discourse/htdocs/config/application.rb:65:in `<top (required)>'
11: from /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler.rb:174:in `require'
10: from /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/runtime.rb:58:in `require'
9: from /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/runtime.rb:58:in `each'
8: from /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/runtime.rb:69:in `block in require'
7: from /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/runtime.rb:69:in `each'
6: from /opt/bitnami/ruby/lib/ruby/gems/2.6.0/gems/bundler-2.1.2/lib/bundler/runtime.rb:74:in `block (2 levels) in requ
ire'
5: from /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/co
re_ext/kernel_require.rb:27:in `require'
4: from /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/co
re_ext/kernel_require.rb:41:in `rescue in require'
3: from /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/co
re_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
2: from /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/lo
aded_features_index.rb:89:in `register'
1: from /opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/co
re_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/opt/bitnami/apps/discourse/htdocs/vendor/bundle/ruby/2.6.0/gems/bootsnap-1.4.6/lib/bootsnap/load_path_cache/core_ext/kernel_req
uire.rb:23:in `require': cannot load such file -- rb-inotify (LoadError)
(Note que tentei executar alguns dos scripts de importação incluídos, não personalizados… com o mesmo erro. Portanto, parece que o erro não é desencadeado por nenhuma das minhas edições no código Ruby)