Skip redis and database connections during asset precompilation#5962
Skip redis and database connections during asset precompilation#5962cryptomilk wants to merge 1 commit intozammad:developfrom
Conversation
|
Just out of interest, why are you building suse packages when there's already some from the vendor? |
|
I prefer to use distribution packages instead of vendoring. |
|
This is a very interesting approach. We already had a similar use case in Your solution seems to be more elegant. Maybe it would be good to consider centralizing this logic, e.g. in @mantas FYI |
5ac1112 to
4ff3dd5
Compare
Done. |
4ff3dd5 to
3f8e24a
Compare
Asset precompilation only needs to compile CSS, JavaScript, and images. It does not require Redis (for ActionCable) or PostgreSQL/MySQL database connections. This patch modifies initializers to skip these services when running the assets:precompile rake task, allowing the build to succeed in environments where these services are not available.
3f8e24a to
cc9e9a3
Compare
Asset precompilation only needs to compile CSS, JavaScript, and images. It does not require Redis (for ActionCable) or PostgreSQL/MySQL database connections. This patch modifies initializers to skip these services when running the assets:precompile rake task, allowing the build to succeed in environments where these services are not available.
I'm currently packaging zammad for openSUSE here. This is one of my patches trying to get it built.