From 0de1ca8c65227b7de3d890f73c54b80780fd07f1 Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Fri, 19 Jan 2018 02:06:12 +0530 Subject: [PATCH] Changed /wp directory to /public --- .gitignore | 2 +- README.md | 6 ++++-- config.js | 2 +- server.js | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index cfb0492..dba6229 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules php -wp +public sqlite plugins/*/ \ No newline at end of file diff --git a/README.md b/README.md index 53df309..8af14df 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # w 🔥 -### WordBox—A truly modern development environment for WordPress +### WordBox—A truly modern development environment for WordPress and PHP + +> WordBox is a portmanteau of WordPress and Sandbox. Although the name implies WordPress, you can really put in any PHP script using WordBox just as easily. WordBox is a truly modern WordPress site development (and deployment) environment. @@ -11,7 +13,7 @@ Bring the power of Node.JS to your WordPress environment! Steps 1-3 will have an automated option later. 1. Download php zip from https://php.net and place the extracted files under `/php`. -2. Download WordPress from https://wordpress.org and place the extracted files under `/wp`. +2. Download WordPress from https://wordpress.org and place the extracted files under `/public`. 3. [Optional / Haven't tested] If you're on Linux, edit the config file to point to your `php-cgi` bin file. 4. Run `npm install` to install dependencies (Express). 5. Run `node .` to start the server. diff --git a/config.js b/config.js index 2ad4693..b038e06 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,7 @@ module.exports = { port: 8080, phpBin: normalize(__dirname + '/php/php-cgi.exe'), - wpPath: normalize(__dirname + '/wp'), + wpPath: normalize(__dirname + '/public'), sqlite: '', plugins: [] } \ No newline at end of file diff --git a/server.js b/server.js index 7bde126..04a9ac6 100644 --- a/server.js +++ b/server.js @@ -25,7 +25,7 @@ chalk.yellow(` | \\ \\ ; | | '---" | ---------------------------------- - WordBoxed + WordBox The modern WordPress environment ----------------------------------`) + chalk.green(` Server running at port ${config.port}