Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust-based stats server on fly.io #165

Merged
merged 33 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
f754ce0
new empty package for stats server
alsuren Mar 4, 2023
020ee94
import skeleton from https://github.com/fly-apps/hello-rust
alsuren Mar 4, 2023
e9f546a
fixup! import skeleton from https://github.com/fly-apps/hello-rust
alsuren Mar 4, 2023
c5b7f65
move it out of the way while fly.io has service disruption
alsuren Mar 4, 2023
bc2e04e
oops: also want hidden files
alsuren Mar 4, 2023
bc3c70e
deployed skeleton to https://cargo-quickinstall-stats-server.fly.dev/
alsuren Mar 4, 2023
6d8fbd9
switch to axum, skeleton /record-install handler
alsuren Mar 4, 2023
958818e
also print
alsuren Mar 4, 2023
6846402
update deploy instructions
alsuren Mar 4, 2023
5b37ac2
use btreemap for consistent key ordering in logs
alsuren Mar 4, 2023
464be77
WIP using influx_db_client (authentication error)
alsuren Mar 5, 2023
07c8df0
have a go with another lib
alsuren Mar 5, 2023
8e493b3
Revert "have a go with another lib"
alsuren Mar 5, 2023
ee2f7d1
working version
alsuren Mar 5, 2023
750627f
set envs for deploy
alsuren Mar 5, 2023
7871471
sneak ssl certs in from the builder
alsuren Mar 5, 2023
b27fac5
switch to new org
alsuren Sep 5, 2024
8f2ca08
fix dockerfile to not use latest
alsuren Sep 5, 2024
c24b8fc
adapt to new dockerfile from fly-apps/hello-rust
alsuren Sep 5, 2024
bcdb012
fix ssl stuff the proper way
alsuren Sep 5, 2024
9c5b0af
Update server/fly.io/src/main.rs
alsuren Sep 6, 2024
788290b
Update server/fly.io/Cargo.toml
alsuren Sep 6, 2024
66c4fe7
thin lto on server
alsuren Sep 6, 2024
8a001ce
observations from self-review
alsuren Sep 8, 2024
fb13d7c
upgrade rust; LazyLock; no get: only post
alsuren Sep 8, 2024
1b40a69
rename folder to stats-server/
alsuren Sep 8, 2024
9d68f47
upgrade all the things (axum, rust, debian)
alsuren Sep 8, 2024
f178c4a
can't remember what this command was even for
alsuren Sep 8, 2024
03e2969
use my fork with bugfix for escaping keys
alsuren Sep 8, 2024
9b64674
deploy on merge to main (and test on this branch)
alsuren Sep 8, 2024
420d8be
need to explicitly state the environment?
alsuren Sep 8, 2024
de04667
seems to have worked on the branch
alsuren Sep 8, 2024
bed128c
publish = false
alsuren Sep 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/deploy-stats-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Fly Deploy
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy app
environment: stats server production
runs-on: ubuntu-latest
concurrency: deploy-group
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy stats-server
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
1 change: 1 addition & 0 deletions stats-server/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
1 change: 1 addition & 0 deletions stats-server/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
Loading