caprover / caprover-website

CapRover Website and Docs
http://www.CapRover.com
16 stars 107 forks source link

Updated Persistent App directory #75

Closed Fabian9799 closed 3 years ago

Fabian9799 commented 3 years ago

Updated the text for a better understanding since it is currently only explained how to access the folder from within the docker container when a specific path is set

githubsaturn commented 3 years ago

and can be accessed in your docker container in /var/usr/YOUR_PATH.

This is not entirely true. The path depends on how you set up the path in your app configuration. It could be /anything/here/path in your container...

Fabian9799 commented 3 years ago

Doesn't that only apply when you choose the "Set specific host path" option?

githubsaturn commented 3 years ago

No.

The path inside the docker container is always customizable.

Fabian9799 commented 3 years ago

So i could use ../../../DIRECTORY as the "Path in app" path to get it into the "app" folder right? since the default is /var/usr/store

githubsaturn commented 3 years ago

What do you mean by "the default is /var/usr/store"? Where do you get this from?

Fabian9799 commented 3 years ago

From here https://caprover.com/docs/persistent-apps.html#docsNav it says "and the file will be available on your server at /var/usr/myfile.txt" and "store" is just the path entered for the "Path in app"

githubsaturn commented 3 years ago

It's just an example: image

Path in the app is "path in the container".

Fabian9799 commented 3 years ago

Oh got it. I was confused about the "server" part since i didn't realize that "server" means the docker container / the app in the third line of your screenshot

githubsaturn commented 3 years ago

Server is the host machine, not the container. I'll make this a bit more clear tomorrow.