https://github.com/marksteve/fly-pub
https://github.com/marksteve/fly-pub
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marksteve/fly-pub
- Owner: marksteve
- Created: 2023-01-16T06:21:47.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T06:22:06.000Z (over 3 years ago)
- Last Synced: 2025-01-30T14:25:36.222Z (over 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fly-pub
Deploy [pub](https://github.com/davecheney/pub) in fly.io
1. Set up mariadb fly app
```
cd mariadb
fly launch # Don't deploy and revert changes applied by to fly.toml
fly secrets set \
MARIADB_PASSWORD= \
MARIADB_ROOT_PASSWORD=
fly volumes create pubdata
fly deploy
```
2. Set up pub fly app
```
cd serve
fly launch # Don't deploy yet
fly secrets set 'DSN=pub:@tcp(pub-mariadb.internal:3306)/pub'
fly deploy
```
3. Follow [Setup](https://github.com/davecheney/pub#setup) instructions from pub. Connect to the remote database by running a proxy:
```
fly proxy 3306 -a pub-mariadb
```