Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run rake tasks in Dockerfile when including exception_handler #83

Open
wkhatch opened this issue Mar 12, 2019 · 2 comments
Open

Comments

@wkhatch
Copy link

wkhatch commented Mar 12, 2019

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.

@richpeck
Copy link
Owner

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?

@wkhatch
Copy link
Author

wkhatch commented Mar 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants