https://github.com/lpil/example-gleam-linux-deployment
https://github.com/lpil/example-gleam-linux-deployment
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/lpil/example-gleam-linux-deployment
- Owner: lpil
- Created: 2025-02-09T17:07:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T19:13:07.000Z (over 1 year ago)
- Last Synced: 2025-05-07T09:57:59.055Z (about 1 year ago)
- Language: Gleam
- Size: 6.84 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# conan
1. Create Wisp web app
2. Push to GitHub
3. Add container building workflow
4. Get server ubuntu LTS
5. Configure DNS to point some domain at your server IP.
6. On server:
1. `apt install podman caddy`
2. ```ini
# in /etc/containers/systemd/webapp.container
[Container]
Image=ghcr.io/lpil/example-gleam-linux-deployment:1.0.0-blue
PublishPort=8000:8000
```
3. `systemctl reload-daemon`
4. `systemctl status webapp`
5. `systemctl start webapp`
6. `systemctl status webapp`
7. ```toml
YOUR_DOMAIN_NAME_HERE {
reverse_proxy localhost:8000
}
```
8. `systemctl restart caddy`
## Tips & tricks
If you want to run podman containers without a reverse proxy on the host
then you need to `ufw default allow FORWARD`.