summaryrefslogtreecommitdiff
path: root/tornado_main.py
diff options
context:
space:
mode:
authorPrashant S2019-07-16 14:44:05 +0530
committerGitHub2019-07-16 14:44:05 +0530
commit07ae1bafcc89c187b4471ddcb9fd19bb213d6c87 (patch)
treecbc630be80d0995ded8dfac87c1a759a2b5d3b6b /tornado_main.py
parent2b9b960c698cd541300fbfa96dc2cec515852adc (diff)
parentd5138c4af46e9519a0c5b18ef7142ffe0a9383fa (diff)
downloadR_on_Cloud_Web_Interface-07ae1bafcc89c187b4471ddcb9fd19bb213d6c87.tar.gz
R_on_Cloud_Web_Interface-07ae1bafcc89c187b4471ddcb9fd19bb213d6c87.tar.bz2
R_on_Cloud_Web_Interface-07ae1bafcc89c187b4471ddcb9fd19bb213d6c87.zip
Merge pull request #2 from prashantsinalkar/master
added file upload feature
Diffstat (limited to 'tornado_main.py')
-rw-r--r--tornado_main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tornado_main.py b/tornado_main.py
index 8b542a9..7683e85 100644
--- a/tornado_main.py
+++ b/tornado_main.py
@@ -43,8 +43,10 @@ from tornado import gen
from instances import execute_code
import threading
import pwd
+from R_on_Cloud.config import TORNADO_IP, TORNADO_PORT
-define('port', type=int, default=8000)
+define('port', type=int, default=TORNADO_PORT)
+define("ip", default=TORNADO_IP, help="Run on any given IP", type=str)
# Custom settings
from R_on_Cloud.settings import PROJECT_DIR
@@ -140,7 +142,7 @@ def main():
('.*', tornado.web.FallbackHandler, dict(fallback=wsgi_app)),
], debug=False)
server = tornado.httpserver.HTTPServer(tornado_app)
- server.listen(options.port)
+ server.listen(options.port, options.ip)
try: