The Dockerfile is needed to build an Image during fly.io deployment. Maybe the second image build can be avoided with fly deploy -i <image>, it's mentioned here: https://news.ycombinator.com/item?id=30019194
Service
Read secrets and put it into the deployment, this should be straight-forward
enable compression for application/json
as mentioned in #73 for GraalVM another workaround for flyway is needed. Given how fly.io works having a native image would be a massive benefit as there is a significant startup time difference
Web
This actually makes my head hurt. Responses from POST requests cannot be decoded in the browser. The only difference I found was:
This results in TypeError: Decoding failed. with no useful information. The response itself contains status 201 and everything looks fine in the logs. It works when testing locally both in the IDE and using docker-compose with the production-ready images. I can only reproduce it when I activate compression for application/json on quarkus.
Workaround: Only evaluate the response status code and print an error if anything went wrong. Fetch the added data with a GET request. This affects
the dashboard: POST /tracker/calories/create, POST /tracker/weight/create
Some lessons were learnt. TODO.
Deployment
The Dockerfile is needed to build an Image during fly.io deployment. Maybe the second image build can be avoided with
fly deploy -i <image>
, it's mentioned here: https://news.ycombinator.com/item?id=30019194Service
as mentioned in #73 for GraalVM another workaround for flyway is needed. Given how fly.io works having a native image would be a massive benefit as there is a significant startup time differenceWeb This actually makes my head hurt. Responses from POST requests cannot be decoded in the browser. The only difference I found was:
Example response headers (after POST on /tracker/weight/create):
This results in
TypeError: Decoding failed.
with no useful information. The response itself contains status 201 and everything looks fine in the logs. It works when testing locally both in the IDE and using docker-compose with the production-ready images. I can only reproduce it when I activate compression for application/json on quarkus.Workaround: Only evaluate the response status code and print an error if anything went wrong. Fetch the added data with a GET request. This affects