Reading env variables with custom app
-
I am trying to install a custom app written in Phoenix Elixir.
My dockerfile ends with that:
ADD start.sh /app/start.sh RUN chmod +x /app/start.sh CMD [ "/app/start.sh" ]Earlier, I set my environment variables like that:
ENV SECRET_KEY_BASE=defaultHere is my startup script:
#!/bin/bash set -eu # Load environment variables source ./env.list # Start PROGRAM exec ./_build/prod/rel/PROGRAM/bin/PROGRAM startBut the environment variables don't seem to be read properly, so the app doesn't start in Cloudron. What am I doing wrong?
-
G girish marked this topic as a question on
-
G girish has marked this topic as solved on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login