Skip to content

Commit

Permalink
add repl
Browse files Browse the repository at this point in the history
  • Loading branch information
notenoughneon committed Sep 26, 2015
1 parent 23ac459 commit c616915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Expand Up @@ -13,7 +13,7 @@
// Automatically stop program after launch. // Automatically stop program after launch.
"stopOnEntry": false, "stopOnEntry": false,
// Command line arguments passed to the program. // 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. // Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
"cwd": ".", "cwd": ".",
// Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH. // Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
Expand Down
3 changes: 3 additions & 0 deletions apiserver.ts
Expand Up @@ -2,6 +2,7 @@
import fs = require('fs'); import fs = require('fs');
import os = require('os'); import os = require('os');
import path = require('path'); import path = require('path');
import repl = require('repl');
import querystring = require('querystring'); import querystring = require('querystring');
import express = require('express'); import express = require('express');
var Busboy = require('busboy'); var Busboy = require('busboy');
Expand Down Expand Up @@ -232,3 +233,5 @@ var server = app.listen(process.argv[2], function (){
var address = server.address(); var address = server.address();
debug('Listening on %s:%s', address.address, address.port); debug('Listening on %s:%s', address.address, address.port);
}); });

repl.start('> ').context.site = site;

0 comments on commit c616915

Please sign in to comment.