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

compile time host != runtime host #33

Closed
KristerV opened this issue Nov 25, 2024 · 2 comments
Closed

compile time host != runtime host #33

KristerV opened this issue Nov 25, 2024 · 2 comments

Comments

@KristerV
Copy link

I'm getting this error if I configure the host in runtime.exs:

[info]ERROR! the application :phoenix_analytics has a different value set for key :app_domain during runtime compared to compile time. Since this application environment entry was marked as compile time, this difference can lead to different behavior than expected:
[info]  * Compile time value was set to: "example.com"
[info]  * Runtime value was set to: "kogupere.ee"
[info]To fix this error, you might:
[info]  * Make the runtime value match the compile time one
[info]  * Recompile your project. If the misconfigured application is a dependency, you may need to run "mix deps.clean phoenix_analytics --build"
[info]  * Alternatively, you can disable this check. If you are using releases, you can set :validate_compile_env to false in your release configuration. If you are using Mix to start your system, you can pass the --no-validate-compile-env flag

meaning i'm now forced to configure that same host in compile time also! but my whole project conf is in runtime. i don't even have the host env var in compile time. ended up hardcoding into compile time. quite annoying.

@lalabuy948
Copy link
Owner

@KristerV thank you for sharing this, I think someone already told me about this one.

May I kindly ask you to take a look on that PR?
If of course possible to test, if it's going to remove this notice.

I could add it into upcoming release.

@lalabuy948
Copy link
Owner

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