Replies: 2 comments 1 reply
-
drKreso Did you ever find a fix? I'm dealing with this right now too. If I swap these commands the app runs locally, but when deployed on fly.io it doesn't load any of the styles
|
Beta Was this translation helpful? Give feedback.
-
I think it was related to node verision(20 seems fine). I have this for deploy alias
and this is my final Dockerfile(two phase, so I don't have elixir in prod) I have this ARGs mumbo jumbo for Dockehub pipeline with hooks
hooks build file for Docker hub #!/usr/bin/env sh
docker build \
-t $docker_hub_repo_name \
--build-arg database_url=$database_url \
--build-arg port=$port \
--build-arg secret_key_base=$secret_key_base \
--build-arg aws_access_key=$aws_access_key \
--build-arg aws_secret_key=$aws_secret_key \
--build-arg aws_region=$aws_region \
--build-arg mix_env=$mix_env \
--build-arg release_level=$release_level .
I am not sure if this is relevant, I've never did anything on fly.io and have no idea how they work. This is classic Docker for Docker Swarm or K8 setup |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have Docker image with node 19.9.0
How do I setup assets. Phoenix stuff is working.
If I use asssets.deploy alias it complains about .svelte components.
If I use watcher for build it complains about esbuild module not being present.
Can someone share Docker setup and general approach
If I run docker build . on original example project and I avoid issue with copy rel rel I still get this (like in my docker)
Beta Was this translation helpful? Give feedback.
All reactions