@@ -79,6 +79,9 @@ var appStateAugmenter: any = undefined; // super hacky! fixme
7979var loadTestCases : any = undefined ; // super hacky! fixme
8080
8181
82+ // note that these settings are all customized for my own server setup,
83+ // so you will need to customize for your own server:
84+
8285// backend scripts to execute (Python 2 and 3 variants, if available)
8386// make two copies of ../web_exec.py and give them the following names,
8487// then change the first line (starting with #!) to the proper version
@@ -90,14 +93,10 @@ var loadTestCases: any = undefined; // super hacky! fixme
9093// -rwxr-xr-x 1 pgbovine pgbovine 2.5K Jul 5 22:46 web_exec_py2.py*
9194// (most notably, only the owner of the file should have write
9295// permissions)
93- //var python2_backend_script = 'web_exec_py2.py';
94- //var python3_backend_script = 'web_exec_py3.py';
95-
96- // uncomment below if you're running on Google App Engine using the built-in app.yaml
97- var python2_backend_script = 'exec' ;
98- var python3_backend_script = 'exec' ;
96+ var python2_backend_script = 'web_exec_py2.py' ;
97+ var python3_backend_script = 'web_exec_py3.py' ;
9998
100- // empty dummy just to do logging on the Apache's server
99+ // empty dummy just to do logging on Apache server
101100var js_backend_script = 'web_exec_js.py' ;
102101var ts_backend_script = 'web_exec_ts.py' ;
103102var java_backend_script = 'web_exec_java.py' ;
@@ -124,6 +123,11 @@ if (window.location.protocol === 'https:') {
124123 var CPP_JSONP_ENDPOINT = 'http://104.237.139.253:3000/exec_cpp_jsonp' ; // for deployment
125124}
126125
126+ var serverRoot = ( window . location . protocol === 'https:' ) ?
127+ 'https://cokapi.com:8001/' :
128+ 'http://104.237.139.253:3000/' ;
129+
130+
127131
128132function langToBackendScript ( lang ) {
129133 var backend_script = null ;
0 commit comments