jampuppy

command module
v0.0.0-...-9322ae4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2024 License: MIT Imports: 12 Imported by: 0

README

JamPuppy - a Jam Stack tool for Dogebox

JamPuppy is a simple go binary that can be used to create and serve static jam-stack apps on dogebox, as installable pups.

Example:

jampuppy -p 8080 -v -r "/dogenet http://localhost:8080/dogenet /txindex http://localhost:8081/txindex" -d /mysite


<requests in/out printed here>

Installation:

go install

This installs the binary to ~/go/bin which you may need to add to your path.

Alternatively you can go build and run the binary as ./jampuppy

Usage:

jampuppy <args> -d <directory of static files>

Help:

jampuppy --help

Arguments:

-A, --app-index string    Index file to serve in place of 404 (for SPA)
-d, --dir string          Directory of static files to serve (default ".")
-h, --host string         Bind to network interface (default "localhost")
-I, --index string        Index file to serve for directores (default "index.html")
-p, --port int            Listen port (default 8080)
-r, --proxy stringArray   Reverse Proxy: '/thing http://localhost:8085/thing' (one or more)
-v, --verbose             Colour prints ingoing/outgoing requests for debugging

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL