Skip to content

Commit

Permalink
added wsgi.py detection to match flask's application discovery behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
rongxin-liu committed Nov 21, 2023
1 parent e653eda commit 4b10bc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opt/cs50/bin/http-server
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ t="-t0"
bold=$(tput bold)
normal=$(tput sgr0)

# Check for app.py
if [[ -f app.py ]]; then
# Check for app.py or wsgi.py
if [[ -f app.py ]] || [[ -f wsgi.py ]]; then
read -p "Are you sure you want to run ${bold}http-server${normal} and not ${bold}flask${normal}? [y/N] " -r
if [[ ! "${REPLY,,}" =~ ^y|yes$ ]]; then
exit 1
Expand Down

0 comments on commit 4b10bc5

Please sign in to comment.