Commit 70ae6f9e authored by Ganesh Katrapati's avatar Ganesh Katrapati
Browse files

Changes

parent c0f8cdee
web: python ./main.py $PORT
\ No newline at end of file
......@@ -2,7 +2,7 @@ from bottle import Bottle, run, template, debug, static_file, request
import os, sys
import requests
dirname = os.path.dirname(sys.argv[0])
#dirname = os.path.dirname(sys.argv[0])
API_KEY="e4fc6e10"
app = Bottle()
......@@ -47,4 +47,5 @@ def send_static(filename):
static_f = static_file(filename, root='static/')
return static_f
run(app, host='0.0.0.0', port=8000)
if __name__ == '__main__':
run(app, host='0.0.0.0', port=sys.argv[1])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment