fail to load env to deployed flask app #11614
-
QuestionI put thoose code in Action *.yml, also create secrets in Github Secrets but on render log, it show that the app cannot read thoose Key. The actions show "OK" in 2 progress build and deploy name: Deploy to production name: Trigger Deploy on Render |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You may get it wrong, Github actions only use the machine you specify in *.yaml with build and deploy testing, what you actually embedded into a Docker image specify in your Dockerfile. So those secrets pass into the Github Action's machine not on Render. If you hide your key in .env, just go to your instance on Render, go to Environment Tab > Import From .env. Read this: Deploy Flask app on Render |
Beta Was this translation helpful? Give feedback.
You may get it wrong, Github actions only use the machine you specify in *.yaml with build and deploy testing, what you actually embedded into a Docker image specify in your Dockerfile. So those secrets pass into the Github Action's machine not on Render.
If you hide your key in .env, just go to your instance on Render, go to Environment Tab > Import From .env.
Read this: Deploy Flask app on Render