Forrest logo
back to context overview

serve

List of commands for serve:

  • serve:tldr:044a0 serve: Start an HTTPS server on the default port using the specified certificate.
    $ serve --ssl-cert ${path-to-cert-pem} --ssl-key ${path-to-key-pem}
    try on your machine
    explain this command
  • serve:tldr:08485 serve: Start an HTTP server on the default port using a specific configuration file.
    $ serve --config ${path-to-serve-json}
    try on your machine
    explain this command
  • serve:tldr:20cc3 serve: Start an HTTP server listening on the default port to serve the current directory.
    $ serve
    try on your machine
    explain this command
  • serve:tldr:82b34 serve: Start an HTTP server on a specific [p]ort to serve a specific directory.
    $ serve -p ${port} ${path-to-directory}
    try on your machine
    explain this command
  • serve:tldr:970a3 serve: Start an HTTP server with CORS enabled by including the `Access-Control-Allow-Origin: *` header in all responses.
    $ serve --cors
    try on your machine
    explain this command
  • serve:tldr:c48e2 serve: Display help.
    $ serve --help
    try on your machine
    explain this command
  • serve:tldr:dad09 serve: Start an HTTP server on the default port rewriting all not-found requests to the `index.html` file.
    $ serve --single
    try on your machine
    explain this command
back to context overview