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

Fix docker build for asset precompilation #5938

Merged
merged 2 commits into from
Jul 15, 2024
Merged

Fix docker build for asset precompilation #5938

merged 2 commits into from
Jul 15, 2024

Conversation

cjcolvar
Copy link
Member

See #5937

cjcolvar added 2 commits July 15, 2024 16:21
We set asset_host in config/initializers/default_host.rb for correctly generating links to assets,
but when building the production docker image asset_host is set to localhost because the host configuration
is unknown at this point.  The asset_host doesn't need to be written into the packs manifest and before
setting asset_host in the initializers in this version of avalon previous versions had relative asset paths
in the packs manifest.

See https://github.com/shakacode/shakapacker/blob/main/docs/troubleshooting.md#wrong-cdn-src-from-javascript_pack_tag
…tion

Don't add asset_host to assets in packs manifest
@cjcolvar cjcolvar merged commit a68c2a4 into staging Jul 15, 2024
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants