Build your app
Open a terminal inside your project folder and build the app. If you are building for Linux from a macOS or Windows computer, use:app in your project folder.
Now you have a single binary file that contains your Mizu app.
Run on a server
Upload the file to your server. If you are using SSH, you can copy it with this command:http://your-server:3000 to see it running.
If the page does not load, check that the port is open in your firewall settings.
Keep it running
When you close your SSH session, the app will stop. To keep it running in the background, use a small process manager likesystemd.
Create a file at /etc/systemd/system/mizu.service with this content:
Add HTTPS
To make your app available over HTTPS, set up a reverse proxy. Caddy is one of the easiest ways to do this, because it can get certificates automatically. Example Caddyfile:https://yourdomain.com.
Deploy with Docker
If you prefer Docker, you can package your app in a container. Create aDockerfile like this:
http://localhost:3000 to confirm it is running.
Docker is useful when you want consistent deployments across different machines.