Closed timobrembeck closed 1 year ago
The simulation script is currently not part of the PyPI package, so I suggest to move it into the
opendrift_leeway_webgui
directory. Not sure whether this has any side-effects on the celery execution...
It should be okay. The path is mounted in the Docker container (https://github.com/digitalfabrik/opendrift-leeway-webgui/blob/main/opendrift_leeway_webgui/leeway/tasks.py#L27). If that the path is good, everything within the container should work as usual.
It should be okay. The path is mounted in the Docker container (https://github.com/digitalfabrik/opendrift-leeway-webgui/blob/main/opendrift_leeway_webgui/leeway/tasks.py#L27). If that the path is good, everything within the container should work as usual.
Ah ok, so this means at the moment it's not advisable to change LEEWAY_SIMULATION_ROOT
on the prod system, because then the simulation.py
would not be found anymore?
From a "separation of code and data"-perspective, it probably makes sense to create a different root-directory for simulation.py
and the input/output dirs, right?
Ah ok, so this means at the moment it's not advisable to change
LEEWAY_SIMULATION_ROOT
on the prod system, because then thesimulation.py
would not be found anymore?
You changed the path in the settings.py in accordance to the actual path change. Should work IMHO.
From a "separation of code and data"-perspective, it probably makes sense to create a different root-directory for
simulation.py
and the input/output dirs, right?
True, we probably could use paths totally outside of the application. However, we would either have to mount them separately into the container or symlink them them into the simulation directory.
Ok, what do you think about this solution? I think now we can just create an empty directory /var/www/opendrift-leeway-webgui/simulation/
, can define this as SIMULATION_ROOT
in the config file and don't have to worry about the location of simulation.py
...
The simulation script is currently not part of the PyPI package, so I suggest to move it into the
opendrift_leeway_webgui
directory. Not sure whether this has any side-effects on the celery execution...