exception_handler icon indicating copy to clipboard operation
exception_handler copied to clipboard

Cannot run rake tasks in Dockerfile when including exception_handler

Open wkhatch opened this issue 5 years ago • 2 comments

I've revisited this gem again, after unsuccessfully trying it in the past but having now upgraded the application to rails 5.2. Now I'm hitting a new issue, in that, when building a docker image, my Dockerfile has to precompile the assets as part of the docker image build. This gem is forcing a db connection during initialize, so that fails, as I don't have a db connection during the docker build.

wkhatch avatar Mar 12 '19 05:03 wkhatch

Hi William, many thanks for taking the time to contact me and use ExceptionHandler.

In terms of your request, do you have the db option set at all?

richpeck avatar Mar 12 '19 07:03 richpeck

Yes, and I hadn't considered that. I could disable it for production, although I'd rather not. I'll play around with it more and see if I can figure out a work around. Thanks.

wkhatch avatar Mar 13 '19 01:03 wkhatch