Skip to content

Commit

Permalink
Allowing remote access
Browse files Browse the repository at this point in the history
  • Loading branch information
Machiry committed Dec 31, 2017
1 parent 79c6a63 commit 1ed0c3e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion visualizer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ In this way it is possible to develop other types without touching the server.
**Note**: After you open the client URL on a webpage, please wait for 30-50 seconds for results to populate on the webpage. This is because the server need to process all the JSONs and store them in a DB.
## Advanced use
Our server component has 5 configuration options, that control the working of the server.
Our server component has six configuration options, that control the working of the server.
* DEBUG: [Optional, Default=false] A Boolean flag to allow debug logs.
* RUN_REMOTE: [Optional, Default=True] A Boolean flag to allow the server listen on all the interfaces.
* RESULTS_DIR: [Required] Path to the directory containing all jsons.
Following options will help in warnings when kernel source folder is different from the one used during compilation.
Expand Down
5 changes: 4 additions & 1 deletion visualizer/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,7 @@ def get_sourcecode(path):


if __name__ == "__main__":
app.run()
if RUN_REMOTE:
app.run(host='0.0.0.0')
else:
app.run()
2 changes: 2 additions & 0 deletions visualizer/server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"""

DEBUG = False
# allow running on external interfaces
RUN_REMOTE = True

# dr_checker's output folder
RESULTS_DIR = "/path/to/the/directory/containing/jsons"
Expand Down

0 comments on commit 1ed0c3e

Please sign in to comment.