Closed GiroudMathias closed 3 years ago
SERVER_DIR used for citizenfx executable DATA_DIR used for resources folders it is very useful in case DATA_DIR is a git project
But the DATA_DIR is not static it's wiped on every change of the container or would should i remove the SERVER_DIR?
The SERVER_DIR contains only CitizenFX executables. Therefore, it can be separated from DATA_DIR (which is usually the case). In this case, in my infrastructure, DATA_DIR is a GIT repository that is automatically synchronized, and I can't have SERVER_DIR interfering. in doing so, my structure is as follows: /home/docker/server-fivem/citizenfx = SERVER_DIR /home/docker/server-fivem/data = DATA_DIR
The SERVER_DIR contains only CitizenFX executables. Therefore, it can be separated from DATA_DIR (which is usually the case). In this case, in my infrastructure, DATA_DIR is a GIT repository that is automatically synchronized, and I can't have SERVER_DIR interfering. in doing so, my structure is as follows: /home/docker/server-fivem/citizenfx = SERVER_DIR /home/docker/server-fivem/data = DATA_DIR
Wouldn't it be better to create a new directory in the DATA_DIR (SERVER_DIR - absolute path /serverdata/serverfiles - is located in the DATA_DIR - absolute path /serverdata) like a RESOURCES_DIR - wich the absolute path would be /serverdata/resources - if you do it the way of your pull request the mounted DATA_DIR easily can eventually interfere with the SERVER_DIR.
SERVER_DIR used for citizenfx executable DATA_DIR used for resources folders it is very useful in case DATA_DIR is a git project