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.

44 lines
1.1 KiB

'use strict'
const express = require('express')
7 years ago
const php = require('./php')
const chalk = require('chalk')
7 years ago
const config = require('./config')
const plugins = require('./plugins/main')
7 years ago
7 years ago
const fancyIntro =
chalk.yellow(`
+---------------------------------+
| .---. |
| /. ./| |
| .--'. ' ; |
| /__./ \\ : | |
| .--'. ' \\' . |
| /___/ \\ | ' ' |
| ; \\ \\; : |
| \\ ; | |
| . \\ .\\ ; |
| \\ \\ ' \\ | |
| : ' |--" |
| \\ \\ ; |
| '---" |
+---------------------------------+
WordBox
The modern WP & PHP environment
+---------------------------------+`) + chalk.green(`
Server running at port ${config.port}
+---------------------------------+
7 years ago
`)
const app = express()
7 years ago
app
.use("/", php.cgi(config.wpPath, config.phpBin))
7 years ago
.listen(config.port)
7 years ago
console.log(fancyIntro)
plugins() // Run any plugins you need to while server runs