Nicolas Rodriguez
Nicolas Rodriguez
https://logger.rocketjob.io/forking.html
> I wish there was an easy way to have the code automatically generate this list. Why not adding a subcommand? `postgres_exporter list_metrics` that dumps metrics and descriptions on stdout?
Basically this : https://github.com/prometheus-community/postgres_exporter/blob/c84fc4a13a414af7af9da3335e5e3e6653b10215/cmd/postgres_exporter/postgres_exporter.go#L165
Also it ignores the (not so) new `gems.rb` and `gems.locked` files : * https://depfu.com/blog/2017/09/06/gemfiles-new-clothes * https://github.com/rubygems/bundler/blob/a45a7e778b04edfff03d6dd2f78a2db649d3805a/CHANGELOG.md#180pre-2015-01-26
How to fix this : https://github.com/rails/spring/commit/8a3297fb778e06c047279acdea44ffdf5661e93e
Setting NODE_ENV might save you : https://github.com/rails/webpacker/issues/1374
I had the same error with erb-loader with `bundle exec rake assets:precompile`: ``` ERROR in ./app/javascript/vendor/javascripts/smart_listing/smart_listing.coffee.erb Module build failed: Error: rails-erb-loader failed with code: 1 at ChildProcess. (/home/nicolas/PROJECTS/CONCERTO/concerto/node_modules/rails-erb-loader/index.js:120:16) at ChildProcess.emit...
> @n-rodriguez so this is an issue with webpacker, not not rails-erb-loader? well it seems to be...
I don't know how or why but when `rails/runner` is called by rails-erb-loader the exit code is not 0. Running it by hand returns 0.
Setting NODE_ENV env var saved my day :)