Closed geek-at closed 5 years ago
Thanks for the pointers! I unfortunately wrote the setup script from memory, so I'm not surprised you're finding problems there. I should have written the script while I built the project, not afterwards.
Again, thank you for the help in pointing these out!
The first and fourth have been fixed now, and since the third pointer isn't an issue I'm going to close this. Feel free to reopen if you disagree. I also created #9 to address your second pointer, but that will probably be lower priority for the time being.
Additional issue: When the setup.sh script gets to the Flask section, it fails with Error: Could not locate Flask application. You did not provide the FLASK_APP environment variable.
@lizard626 that seems weird. FLASK_APP should never even need to be set for installing anything, it's only used for running the application (which the setup script doesn't do). I just did a fresh install/setup not too long ago and didn't encounter this either.
I created #13 to look into it though -- creating a new issue is preferred over commenting on old/closed ones btw. Feel free to continue the discussion over there!
Hello again! Here are a few things I found:
setup.sh
under "Generate self-signed certificates" you generate certificates and try to copy them to the /etc/nginx/ path before installing nginx (so this will fail)nginx
part of thesetup.sh
you copy the nginx config to sites-available but never link this file to sites-enabled which means the file will never be used. You could install it directly to sites-enabled which is not best pactice but gets the job done for this project