Muthu Kumar
7 years ago
7 changed files with 88 additions and 9 deletions
@ -1,4 +1,5 @@ |
|||||
node_modules |
node_modules |
||||
php |
php |
||||
wp |
wp |
||||
|
sqlite |
||||
plugins/*/ |
plugins/*/ |
@ -1,16 +1,43 @@ |
|||||
'use strict' |
'use strict' |
||||
|
|
||||
const express = require('express') |
const express = require('express') |
||||
const php = require("./php") |
const php = require('./php') |
||||
|
const chalk = require('chalk') |
||||
|
|
||||
const config = require('./config') |
const config = require('./config') |
||||
const plugins = require('./plugins/main') |
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() |
const app = express() |
||||
|
|
||||
app |
app |
||||
.use("/", php.cgi(config.wpPath, config.phpBin)) |
.use("/", php.cgi(config.wpPath, config.phpBin)) |
||||
.listen(config.port) |
.listen(config.port) |
||||
|
|
||||
console.log(`⚡ Server listening at ${config.port}!`) |
console.log(fancyIntro) |
||||
|
|
||||
plugins() // Run any plugins you need to while server runs
|
plugins() // Run any plugins you need to while server runs
|
||||
|
Loading…
Reference in new issue