Skip to content

fly.io configuration - #194

Open
TheJolman wants to merge 14 commits into
mainfrom
devops/deploy2
Open

fly.io configuration#194
TheJolman wants to merge 14 commits into
mainfrom
devops/deploy2

Conversation

@TheJolman

@TheJolman TheJolman commented Aug 8, 2026

Copy link
Copy Markdown
Collaborator

live url: https://api-acmcsuf-com-black-wind-9210.fly.dev/

creates configuration for deploying on fly.io and fixes a bug for setting the URL from the CLI.

  • makes it so API doesn't even try and make a connection with discord while in dev mode even if it has a token
  • makes building with make less noisy as well bc this was bugging me

note that this deployment is just a first step, it's still in dev and therefore is unauthenticated.

Next steps: use Turso for the database, currently db is on a docker volume which works but probably isn't good enough for production.

@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown

godoc reference preview ready ✨
Go Documentation

@TheJolman
TheJolman marked this pull request as draft August 8, 2026 23:52
@TheJolman
TheJolman marked this pull request as ready for review August 9, 2026 04:48
@TheJolman

Copy link
Copy Markdown
Collaborator Author

@GaballaGit please check this out when you get a chance :)

easiest way to test is probably by using this build of the CLI and using the ---api-url flag (note that --host and --port are gone)

Comment thread internal/cli/config/url.go Outdated
return &url.URL{
Scheme: "http",
Host: fmt.Sprintf("%s:%s", cfg.Host, cfg.Port),
apiURL, _ := url.Parse(cfg.APIURL)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg trusting the Normalize func with your life 😭 . I would say potential nil pointer but the normalize func does a pretty good job at catching bad urls.

Comment thread Dockerfile
Comment thread docs/docker.md Outdated
@GaballaGit

Copy link
Copy Markdown
Member

They say this might be one of the most w prs ever

TheJolman and others added 3 commits August 9, 2026 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants