Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/startupscriptgenerator/src/python/frameworks.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (detector *flaskDetector) detect() bool {

// Warning: the official "flask run" tool only looks for "wsgi.py" or "app.py".
// If the user is trying to debug an app with a differene main module name, it will need a custom debug command.
filesToSearch := []string{"application.py", "app.py", "run.py", "index.py", "server.py", "wsgi.py"}
filesToSearch := []string{"application.py", "app.py", "run.py", "index.py", "server.py", "wsgi.py", "main.py"}

for _, file := range filesToSearch {
// TODO: app code might be under 'src'
Expand Down