Skip to content

Commit

Permalink
Create run scripts
Browse files Browse the repository at this point in the history
python run.py
./run.sh
  • Loading branch information
pnedkov committed Dec 21, 2023
1 parent 6c371b4 commit a3af940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from ipget.ipget import app

if __name__ == '__main__':
app.run(host="0.0.0.0", port=5000, debug=True)
3 changes: 3 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exec gunicorn -w ${WORKERS:-2} -b 0.0.0.0:5000 ipget.ipget:app

0 comments on commit a3af940

Please sign in to comment.