Skip to content

Commit

Permalink
Use .flaskenv to setup environment
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyklay committed Feb 4, 2023
1 parent 7a0d6d6 commit 73e807c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .flaskenv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FLASK_APP=server.py
FLASK_DEBUG=1
FLASK_RUN_PORT=5000
8 changes: 2 additions & 6 deletions .github/workflows/contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,11 @@ jobs:
- name: Run API server
if: matrix.os != 'windows-latest'
run: flask run --port 5000 &
env:
FLASK_APP: server.py
run: flask run &

- name: Run API server
if: matrix.os == 'windows-latest'
run: Start-Process -NoNewWindow flask -ArgumentList 'run --port 5000'
env:
FLASK_APP: server.py
run: Start-Process -NoNewWindow flask -ArgumentList 'run'

- name: Setup specmatic
uses: airslate-oss/setup-specmatic@v1
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Flask==2.2.2
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.2
python-dotenv==0.21.1
Werkzeug==2.2.2

0 comments on commit 73e807c

Please sign in to comment.