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