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/broken asset sync prefix #427

Merged
merged 4 commits into from
Aug 25, 2022

Conversation

rajyan
Copy link
Contributor

@rajyan rajyan commented Aug 24, 2022

Problem

I am using asset_sync with rails application without sprockets. That means we can't call Rails.application.config.assets.*, so I wanted to configure the prefix property here

self.prefix || ::Rails.application.config.assets.prefix.sub(/^\//, '')

but noticed that I can't configure prefix in yaml config.
Then I tried to configure it by env but ASSET_SYNC_PREFIX had no effect. From my investigation, I believe ASSET_SYNC_PREFIX env is broken from this conflict resolution commit.
6547ec7

Fix

  • Fixed the ASSET_SYNC_PREFIX env configuration by moving it inside AssetSync.configure
  • Add prefix configuration feature to yaml config too

@PikachuEXE PikachuEXE merged commit 196e33b into AssetSync:master Aug 25, 2022
@PikachuEXE
Copy link
Member

Released in 2.15.3

@rajyan
Copy link
Contributor Author

rajyan commented Aug 25, 2022

Thank you very much for your fast response!!

@rajyan rajyan deleted the fix/broken-asset-sync-prefix branch August 25, 2022 02:59
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