diff --git a/README.md b/README.md index de542bf..160e313 100644 --- a/README.md +++ b/README.md @@ -30,21 +30,18 @@ Install `up` from npm: ## Commands -`up static ` - Create new static server at current folder. +Format: `up command [optional]` -`up proxy ` - Create new proxy server listening at said port. - -`up list` - List currently available servers. (Doesn't work yet) - -`up kill ` - Kill the server for this domain. +- `up static [outbound port]` - Create new static server at current folder. +- `up proxy [outbound port]` - Create new proxy server listening at said port. +- `up list` - List currently available servers. (Doesn't work yet) +- `up kill ` - Kill the server for this domain. ## Examples -`up static example.com` will serve a static website from current folder. - -`up proxy example.com 8081` will create a reverse proxy listening at port 8081. - -`up kill example.com` +- `up static example.com` will serve a static website from current folder. +- `up proxy example.com 8081` will create a reverse proxy listening at port 8081. +- `up kill example.com` ## Contributors, Collaborators, and Guides diff --git a/index.js b/index.js old mode 100644 new mode 100755 index f95b0f2..8f3a00d --- a/index.js +++ b/index.js @@ -13,7 +13,8 @@ var createProxyServer = require('./actions/createProxyServer'); var createStaticServer = require('./actions/createStaticServer'); var killServer = require('./actions/killServer'); -// Check for requirements such as OS version and nginx install. Throw and exit if requirements not found. #Roadmap: Add ability to satisfy any possible requirements. +// Check for requirements such as OS version and nginx install. Throw and exit if requirements not found. +// #Roadmap: Add ability to satisfy any possible requirements. requirements(); // Comment in development and uncomment this line in production. This should check whether the OS is compatible with this version of `up` program diff --git a/package-lock.json b/package-lock.json index 0b002a6..bf62478 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "up-serve", - "version": "0.1.3", + "version": "0.1.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/utils/nginxPath.js b/utils/nginxPath.js index 91dbe8c..935beac 100644 --- a/utils/nginxPath.js +++ b/utils/nginxPath.js @@ -2,7 +2,7 @@ var available = "/etc/nginx/sites-available/"; var enabled = "/etc/nginx/sites-enabled/"; -var wwwRoot = "/var/www/"; +var wwwRoot = "/etc/up-serve/static/"; function availableSites() { return available;