Giter Club home page Giter Club logo

Comments (5)

Vishwas1 avatar Vishwas1 commented on August 17, 2024

The root cause is:

  • At time of vuj js app build, it is taking from .env file. So when we run docker build, at that time it takes env from .env and buiilds the website. But when we run the the nodejs server the website wont take from passed env var from docker run command since these are static files. I dont know how to solve this.

from entity-studio-dashboard-service.

devgurung avatar devgurung commented on August 17, 2024

The root cause is:

  • At time of vuj js app build, it is taking from .env file. So when we run docker build, at that time it takes env from .env and buiilds the website. But when we run the the nodejs server the website wont take from passed env var from docker run command since these are static files. I dont know how to solve this.
    @Vishwas1 Thanks for the info. I just ran the docker image and able to reproduce the issue.

from entity-studio-dashboard-service.

devgurung avatar devgurung commented on August 17, 2024

@Vishwas1 How about having the env variable in docker file and build the image and then set the value while running the docker container. I did not see any example where we can directly set the env variable in a static file.

Also , can you run this command and see whats the value of the env variable.
docker run -e "VUE_APP_TITLE=test_App" -p 9000:9000 hypersignprotocol/studio:1.0.0 | grep VUE_APP_TITLE
I will try the first option once I am done with the office work.

from entity-studio-dashboard-service.

Vishwas1 avatar Vishwas1 commented on August 17, 2024

@Vishwas1 How about having the env variable in docker file and build the image and then set the value while running the docker container. I did not see any example where we can directly set the env variable in a static file.

Also , can you run this command and see whats the value of the env variable.
docker run -e "VUE_APP_TITLE=test_App" -p 9000:9000 hypersignprotocol/studio:1.0.0 | grep VUE_APP_TITLE
I will try the first option once I am done with the office work.

@devgurung First option we are already doign it. see in the dockerfile. we are pointing .env file of the project in the container before building the project.

from entity-studio-dashboard-service.

devgurung avatar devgurung commented on August 17, 2024

@Vishwas1 How about having the env variable in docker file and build the image and then set the value while running the docker container. I did not see any example where we can directly set the env variable in a static file.
Also , can you run this command and see whats the value of the env variable.
docker run -e "VUE_APP_TITLE=test_App" -p 9000:9000 hypersignprotocol/studio:1.0.0 | grep VUE_APP_TITLE
I will try the first option once I am done with the office work.

@devgurung First option we are already doign it. see in the dockerfile. we are pointing .env file of the project in the container before building the project.

@Vishwas1 Ohh..Did not notice that part.
docker run -e "VUE_APP_TITLE=test_App" -p 9000:9000 hypersignprotocol/studio:1.0.0 | grep VUE_APP_TITLE
When you run the above command, whats the result you see in your console?

from entity-studio-dashboard-service.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.