Skip to content

Commit 03ec526

Browse files
authored
Merge pull request #364 from pamelafox/flask-cmd
Use flask run command
2 parents 46e75e1 + eab811b commit 03ec526

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/start.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Write-Host ""
6666
Set-Location ../backend
6767
Start-Process http://127.0.0.1:5000
6868

69-
Start-Process -FilePath $venvPythonPath -ArgumentList "./app.py" -Wait -NoNewWindow
69+
Start-Process -FilePath $venvPythonPath -ArgumentList "-m flask run --port=5000 --reload --debug" -Wait -NoNewWindow
7070

7171
if ($LASTEXITCODE -ne 0) {
7272
Write-Host "Failed to start backend"

app/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ echo ""
5757

5858
cd ../backend
5959
xdg-open http://127.0.0.1:5000
60-
./backend_env/bin/python ./app.py
60+
./backend_env/bin/python -m flask run --port=5000 --reload --debug
6161
if [ $? -ne 0 ]; then
6262
echo "Failed to start backend"
6363
exit $?

0 commit comments

Comments
 (0)