Sample Fly static website based on Dockerfile, minimal Nginx image and with Fly edge static asset caching.
Create app with selected name - here, mystaticapp
:
fly apps create mystaticapp
Replace myapp
in fly.toml
with your app name:
- app = "myapp"
+ app = "mystaticapp"
Deploy the app:
fly deploy
Check that it's working along with caching:
curl -v http://mystaticapp.fly.dev
# ...
< fly-cache-status: HIT
# ...
<html>
<body>
<h1>Hello!</h1>
</body>
</html>
# ...