WordBox is a truly modern WordPress development (and deployment) environment.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

26 lines
630 B

'use strict';
const fs = require('fs');
const { EOL } = require('os');
const express = require('express');
const chalk = require('chalk');
const php = require('./php');
const config = require('./config');
const plugins = require('./plugins/loader');
const app = express();
plugins(app); // Load any plugins declared in config
app.use("/", php.cgi(config));
const fancy = fs.readFileSync('./fancy.txt');
const listeningMsg = (
chalk.yellow(fancy) + EOL +
chalk.green(` Server listening on port ${config.port}` + EOL +
'+---------------------------------+')
);
app.listen(config.port, () => console.log(listeningMsg));