-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Main Flask file name #70
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
Comments
It's not quite that strict, but it's true that it iterates through a list of likely names to look for a Flask app, as described here: Here's the actual Go code in the Oryx build system, if you're curious: I agree that it's useful to document the Oryx flask detection somewhere. FYI @bobtabor-msft who works on some of the relevant documentation. |
Actually, it is mentioned here: with a link to the article that goes into even more details: Is there a way the docs can be improved @filiptrivan ? |
Thanks for asking my opinion. I deployed app through VS Code, so maybe some of my opinions are irrelevant. I would like to have everything in one place, not to go on other link and scroll through whole page to find what I need (didn't even know what I need when I deployed for the first time). When I realized something is wrong, I entered the sample repository and compared the differences, I assumed that the name was important, and it turned out that it was. I don't even like that part at all with assuming how the end user named the file, I think you should only stick to manual script, but that's another subject (I made a pull request to add the main.py name to assumed names). Suggestions:
|
The documentation should mention that main file used to initialize a Flask application must be named
app.py
for proper automatic detection by Azure.The text was updated successfully, but these errors were encountered: