Deploying plainweb means deploying a single long-running Node.js process.
plainweb ships with a fly.toml
file that is ready to deploy to Fly.io.
fly apps create -a <unique app name>
fly.toml
to set the app
to fly deploy
Fly takes regular backups of volumes, but it's still a good idea to have Litestream for fine-grained backups.
plainweb ships with a minimal Dockerfile
so it can be deployed to any Docker-compatible host.
WIP
WIP
Make sure to back up your SQLite database regularly. Litestream is a great tool for this.
plainweb doesn't compress responses by default. The event loop is single-threaded and CPU intensive tasks such as compression can block the event loop, causing slow responses. This negates the benefits of compression for most use cases.
Use a CDN or a reverse proxy to compress responses.