Skip to content

Commit

Permalink
Merge pull request #6 from clowdcontrol/static_server
Browse files Browse the repository at this point in the history
enh: added static server
  • Loading branch information
ltirrell authored Jun 24, 2017
2 parents 8e60a3d + adddd50 commit 55edef4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions imports/python_generate/start_static_server
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env python
import http.server
import os

class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_header("Access-Control-Allow-Origin", "*")
http.server.SimpleHTTPRequestHandler.end_headers(self)

if __name__ == '__main__':
http.server.test(HandlerClass=MyHTTPRequestHandler, port=8080)
1 change: 1 addition & 0 deletions settings_freesurfer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"public": {
"startup_json":"http://localhost:8080/all_entries.json",
"load_if_empty": true,
"modules": [
{
"name": "Brainmask",
Expand Down

0 comments on commit 55edef4

Please sign in to comment.