-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App logo should not disappear on system upgrade #564
Comments
As I can see |
Yeah.. sort of. :) But, upgrade script only upgrades if there are new docker images to be fetched from GitHub. I'll find the code location of the problem. |
This folder is the upload folder: https://github.com/commons-stack/praise/tree/main/packages/api/uploads It gets copied into the Docker container when that is built. Then, uploaded files are being served by the Express API server. The upload folder cannot be indside the Docker container but should be outside of it. The api https://github.com/commons-stack/praise/blob/main/packages/api/Dockerfile Or.. perhaps it is configured in the https://github.com/commons-stack/praise/blob/main/docker-compose.production.yml |
I found where it has been stored, and figured it out after I ask you. I checked the code and what I can understand for now when the update is done it overwrites the folder "inside" API container with default files and it serves image that doesn't exist. Maybe we can omit that folder from the update, better to say omit it from |
I think we need to configure a docker volume outside of the container. I think that can be setup from within the docker-compose file. |
Yes it can, you can define volumes inside docker-compose yaml file. |
@kristoferlund please check fix/api_uplo |
As I said this morning I tried to run images in my local Docker containers but problem exist with FrontEnd image. It has been using same port as my local apache server, but I also tried to run that image with custom ports: but getting a new error: @kristoferlund I will wait your try. |
@kristoferlund did you test this? |
Yup, it worked but I had to add some small things. Have a look at #604 |
You changed several files :D |
Uploaded files need to be stored outside of the Docker container so that the persist over version upgrades.
The text was updated successfully, but these errors were encountered: