coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
26.55k stars 1.35k forks source link

The environment variables are not binding, I read the document but not work. #2739

Open BirajMainali opened 1 week ago

BirajMainali commented 1 week ago

Description

Shared environment variable inside production
image Environment variable config used in application image And the environment variable looks like

Minimal Reproduction (if possible, example repository)

server={{ production.SQL_HOST }},{{ production.SQL_PORT }};database=xyz;User ID={{ production.SQL_USER }}; Password={{ production.SQL_PASSWORD }}

Exception or Error

No response

Version

current beta

knurzl commented 1 week ago

dont write current beta... what is current beta..? could be something else in some time.

knurzl commented 1 week ago

but same issue over here at least for preview deployments.

wallaceosmar commented 5 days ago

The problem is using production like {{ production.SQL_HOST }}

server={{ environment.SQL_HOST }},{{ environment.SQL_PORT }};database=xyz;User ID={{ environment.SQL_USER }}; Password={{ environment.SQL_PASSWORD }}
BirajMainali commented 5 days ago

The problem is using production like {{ production.SQL_HOST }}

server={{ environment.SQL_HOST }},{{ environment.SQL_PORT }};database=xyz;User ID={{ environment.SQL_USER }}; Password={{ environment.SQL_PASSWORD }}

I have tried every single possible way, but the first thing the doc is not, I think Coolify will resolve this issue very soon.