app

package
v0.31.10 Latest Latest
Warning

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

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

README

The scripts in this directory copy and process static files that your application will serve
through Go's embed system.

The scripts here will copy asset files from the goradd-project/web asset directories, and
the goradd installation directory, to the deploy directory.
These files get bundled into the application binary and served directly
from there, which offers easy deployment and some amount of additional security, as the files are
not easily changed.

The scripts will minify and compress files as needed so that they can be served
as fast as possible. Files are compressed into both gzip and brotli formats, which are generally supported
by all browsers. Brotli files are usually smaller and faster to decompress, so if the web browser supports
it, Goradd will prefer brotli.

You can make your application smaller by modifying these script to only stage gzip or brotli files.
If the client only supports a type of compression that is not found, Goradd will decompress the file
before sending it.

You can also modify the scripts to copy the originals without compression, and those will be served.

Files are staged in the goradd-project/deploy/app directory

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