elk icon indicating copy to clipboard operation
elk copied to clipboard

Unable to Set Environment Variable NUXT_PUBLIC_DEFAULT_SERVER in Docker Deployment

Open yeahwong opened this issue 10 months ago • 2 comments

During the deployment of my application using Docker(ghcr.io/elk-zone/elk:main), I've encountered an issue: I'm unable to set the environment variable NUXT_PUBLIC_DEFAULT_SERVER successfully. Despite trying many times, I've been unsuccessful.

Specifically, I attempted to set it using the -e NUXT_PUBLIC_DEFAULT_SERVER=example.com format in the Docker startup command. However, it seems that the variable isn't being properly set within the running container.

Has anyone else faced a similar issue during Docker deployment or do you have any simple suggestions on how to correctly set the NUXT_PUBLIC_DEFAULT_SERVER environment variable within Docker?

Appreciate any insights or guidance on this matter!

yeahwong avatar Mar 27 '24 16:03 yeahwong

Solve in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

stackblitz[bot] avatar Mar 27 '24 16:03 stackblitz[bot]

It can relate to #1427. It seems that the current Docker setup requires to rebuild to configure the default server.

shuuji3 avatar Apr 03 '24 15:04 shuuji3