There appear to be some issues with relative imports in the web application Python code in src/.
For instance, when running docker compose up, the webapp service created from src/Dockerfile fails with the following error: No module named 'app'.
This can be fixed by making the following change in src/Dockerfile:
-CMD ["gunicorn", "--forwarded-allow-ips", "'*'", "-b", "0.0.0.0", "app:server"]
+CMD ["gunicorn", "--forwarded-allow-ips", "'*'", "-b", "0.0.0.0", "long.app:server"]
Note that this is not the only issue with relative imports in the src/ directory.
There appear to be some issues with relative imports in the web application Python code in
src/
.For instance, when running
docker compose up
, thewebapp
service created fromsrc/Dockerfile
fails with the following error: No module named 'app'. This can be fixed by making the following change insrc/Dockerfile
: -CMD ["gunicorn", "--forwarded-allow-ips", "'*'", "-b", "0.0.0.0", "app:server"]
+CMD ["gunicorn", "--forwarded-allow-ips", "'*'", "-b", "0.0.0.0", "long.app:server"]
Note that this is not the only issue with relative imports in the
src/
directory.