A minimal Go application for fly.io Getting Started documentation and tutorials.
- clone this repo
flyctl launch
to launch the app on fly.io for the first timeflyctl deploy
to deploy the app to fly.io after the first launchflyctl open
to open the app in your browserflyctl logs
to see the logsflyctl rsync
to sync files to the fly.io app- view the deployed app with flyctl open
- clone this repo
- Just push to the master branch to deploy to Render.com
- You can do pull request deploys to Render.com by creating a new branch and pushing to it too
In one terminal, run this to start the server:
air app.go
Air will do live-reload of the Go server on file changes
In another terminal (split terminal), run this to have automatic live reload in the browser:
browser-sync start --proxy "127.0.0.1:8080" --files "templates/*.tmpl" --reloadDelay 2000 --no-open --no-notify
The reloadDelay is to avoid browser-sync from reloading the page too quickly while air is rebuilding the Go app.
You don't have to do the browser-sync bit if you're happy to manually refresh the page.s