Skip to content

Instantly share code, notes, and snippets.

@msikma
Created October 7, 2015 09:26
Show Gist options
  • Save msikma/a5b76361283f948776e2 to your computer and use it in GitHub Desktop.
Save msikma/a5b76361283f948776e2 to your computer and use it in GitHub Desktop.
$ ./run.js --help
usage: run.js [-h] [-v] [--no-caching] [--staging] [--port PORT]
[--api-port API_PORT]
{build,start,dev,lint,clean,copy} ...
Builds and runs the main site code. The primary function of the server is to
serve an HTML page with the contents returned by react-router. Requests to
/api/* are proxied to the API server, running at localhost:3030.
This server requires a more heavy-duty httpd like Apache or Nginx as reverse
proxy when running in production.
Positional arguments:
{build,start,dev,lint,clean,copy}
build Build the production server.
start Run the production server.
dev Run the development server.
lint Run ESLint to verify code correctness.
clean Remove previous builds.
copy Copy over static files.
Optional arguments:
-h, --help Show this help message and exit.
-v, --version Show program's version number and exit.
--no-caching Run with caching turned off (previously generated
cache will not be used).
--staging Create a staging build (including a source map)
rather than a production build.
--port PORT Specify the listening port (default: 3000).
--api-port API_PORT Specify the API listening port (default: 3030).
See <http://github.com/some/url> for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment