Removed GET check, no longer needed at this point
This commit is contained in:
parent
9d6fac6a67
commit
ada976c4fb
1 changed files with 5 additions and 12 deletions
|
|
@ -54,19 +54,12 @@ var server = http.createServer(app);
|
|||
|
||||
app.use('/', php.cgi(phpinfo));
|
||||
|
||||
server.listen(port, host, function(){
|
||||
server.listen(port, host, function(res){
|
||||
var url = 'http://'+host+':'+server.address().port+'/';
|
||||
|
||||
http.get(url, function(res) {
|
||||
if(res.statusCode == 200) {
|
||||
changeState('Starting application...', '#00CD00');
|
||||
} else {
|
||||
changeState('Starting application with error code '+res.statusCode, '#FCD116');
|
||||
}
|
||||
window.location = url;
|
||||
}).on('error', function(e) {
|
||||
changeState('<strong>ERROR: '+e.message+'</strong>', '#CD0000');
|
||||
});
|
||||
changeState('Starting application...', '#00CD00');
|
||||
window.location = url;
|
||||
}).on('error', function(e) {
|
||||
changeState('<strong>ERROR: '+e.message+'</strong>', '#CD0000');
|
||||
});
|
||||
|
||||
function changeState(msg, color){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue