-
Notifications
You must be signed in to change notification settings - Fork 7
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
Running mids-documentation locally throws 404 (solved with workaround) #91
Comments
would this work on python? I think this is the python equivalent of set. |
I expected it should, but I got the 404 again if I added these lines to __init__.py:
|
Ok interesting, I haven't run into this issue. It should be possible to just run the main function, which will kick off the server and make it available on your localhost. What always should work is run it as a container with docker, although for development this might introduce unnecessary delays. |
I used flask command line (from within the virtual environment), but I also tried some other methods including running the python scripts directly from command line. I only tried to get the local test server to show, so I could try and tweak the mappings and the way they are rendered. The exact commands are in the batch file I linked in my initial comment, but the additional |
Trying to run https://github.com/DiSSCo/mids-documentation locally on Windows, Mac or Ubuntu throws 404 errors on any page.
This can be fixed by running the command
set FLASK_APP=app.routes
inside the virtual environment.I have no idea why or how to fix this in the python codebase itself. A workaround not to type this extra command each time is to bundle all commands in .bat file. For Linux, a corresponding bash script should work as well.
https://github.com/DiSSCo/mids-documentation/blob/9dc8c5b95888f5bd320a7564e9a96f3ec74a7d3d/run.bat
The text was updated successfully, but these errors were encountered: