#Hello, I need some assistance for this app
22 messages · Page 1 of 1 (latest)
Hey intersted
Have to try to test your API backend?
I tested the API’s on localhost:3000. They were working just fine. However when I created it as a docker image, the API don’t work at all
If you see on this pipeline, there’s a stage where I create a temporary .env file, so that Dockerfile can access them during the runtime
And the var that you see at the beginning is the group variables will all the APIs in it.
No, you need to test after it was deployed
Hey sorry for the late reply. I tried to screen record the project to give you an idea of what I meant
But I tested both localhost and docker image
But the docker image is not working like its supposed to
I’m gonna try test it locally again.
Can you please tell me if there’s anything I need to change before testing it locally?
Okay, so I was able to figure out how to test it locally. It works perfectly fine.
Now I just need some assistance with modifying both docker files & the pipeline for Azure devops
Great, how you can figure out it? I'm not sure can help for that one
I don’t know, I’ve tried everything but nothing seems to work
Never mind, I was able to resolve the issue and now the docker image fully works on the browser
how did you figure it out?
I manually created an .env.production file with all the variables in it
Then in the pipeline I made sure that I copy that .env file for the npm run build and the docker build command
Btw when I said I created an .env.production file, I meant I went inside the vm, created a directory and an .env file in there