I am having a bizarre trouble. I had a project in Node JS using Docker. It has a handful of pages. I add another page and when testing on Docker, it gets 404 file not found.
{
"status": "404",
"message": "/wtf not found."
}
When I login to the docker, I do see the file is loaded. I can modify other existing .ejs files and see the updates as expected. I confirmed the content route is correct.
I am at a lost as to why this is occurring. I did have to update Docker recently. It is running version Docker version 20.10.8, build 3967b7d. I am still on Wappler 3.9.9. I have docker version Docker version 19.03.2, build 6a30dfc on Ubuntu and getting the exact same behavior. I rebooted the machine and software.
Any direction would be helpful. I guess next I will try on Wappler 4.0.1 to see what happens.
Ok, it appears when I rebuilt the project in Wappler the other day, routing wasn’t enabled. So new files were not being added to the route. Now to figure out why my styles are not applying.
Hello all, I am still having this problem. When I update a webpage it is saved to the docker. But other entire directories are missing. I actually created a new directory called files and it is was seen on Docker right away. It is almost like some directories are on ignore and don’t push to Docker.
Docker view:
app certs db extensions files index.js lib node_modules package-lock.json package.json public tmp views
The docker-compose.yml file specifies which directories are bind-mounted to a Docker container. For a NodeJS web application, these are the directories:
Files outside these paths are currently not expected to appear visible inside a Docker container.
If you’re experiencing a specific trouble, feel free to detail such issue. It’s also worth noting webpage asset files (e.g.: CSS) should go inside the public folder (e.g.: public/css)