Permalink
Browse files

add repl

  • Loading branch information...
notenoughneon committed Sep 26, 2015
1 parent 23ac459 commit c616915c6d054831c750956b946d3eb37e2295e9
Showing with 4 additions and 1 deletion.
  1. +1 −1 .vscode/launch.json
  2. +3 −0 apiserver.ts
View
@@ -13,7 +13,7 @@
// Automatically stop program after launch.
"stopOnEntry": false,
// Command line arguments passed to the program.
- "args": ["8001","neon.json"],
+ "args": ["8001","test.json"],
// Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": ".",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
View
@@ -2,6 +2,7 @@
import fs = require('fs');
import os = require('os');
import path = require('path');
+import repl = require('repl');
import querystring = require('querystring');
import express = require('express');
var Busboy = require('busboy');
@@ -232,3 +233,5 @@ var server = app.listen(process.argv[2], function (){
var address = server.address();
debug('Listening on %s:%s', address.address, address.port);
});
+
+repl.start('> ').context.site = site;

0 comments on commit c616915

Please sign in to comment.