run on 0.0.0.0, added python shebang
This commit is contained in:
parent
77ac4dca59
commit
f2594a2449
5
api.py
Normal file → Executable file
5
api.py
Normal file → Executable file
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from flask import Flask, request, jsonify
|
||||
import subprocess
|
||||
import json
|
||||
@ -73,4 +75,5 @@ def verify_payment():
|
||||
|
||||
if __name__ == '__main__':
|
||||
debug_mode = os.getenv('APP_DEBUG', 'False').lower() in ('true', '1', 't')
|
||||
app.run(debug=debug_mode)
|
||||
port = int(os.getenv('PORT', 5000))
|
||||
app.run(host='0.0.0.0', port=port, debug=debug_mode)
|
||||
|
Loading…
x
Reference in New Issue
Block a user