Deploying an App to Fly.io | SvelteKit example app Dockerize and launch!

preview_player
Показать описание


My channel membership is live check it out here!:

Membership perk video:

Check out my channel @ConsultingNinja for more videos like these.

Source code for starting app:

Gist containing Dockerfile:

Рекомендации по теме
Комментарии
Автор

The dockerfile MUST live in home directory (alongside your package.json) of the application (what I meant when I said "inside of our source directory") NOT in /src. *update* fly is now labeling the app a nodejs app since it is relying on node js inside of the container. It still deploys correctly. One other note is that you may run into cors issues with your form actions and api routes in dev mode this has to do with localhost, if you deploy a production build not going to be an issue, if you NEED to use dev then you have to define your config in vite.config.js to use 0.0.0.0 instead of localhost. I hope this helps!

ConsultingNinja
Автор

Will keep around for another Flyio tutorial with SvelteKit, thank you!

adhecson
Автор

Really cool that you can pick a location... I saw Spain there, nice. Great Video!

superspamtube
Автор

My Docker image failed to run. I am using pnpm, node18.16.0... Then I found out "--open" at the last line of your Dockerfile causes the problem. Thanks

meka
Автор

I have a WARM "WARN DNS checks failed" :(

gabrielcastillo
Автор

Could you do a PocketBase and Sveltekit Docker run through?

scott_itall
Автор

I followed this video and many guides but as soon as i do fly launch it says it detected an Node.js application instead of Docker Image, any way to get around to that?

uch
Автор

It looks super cool 🎉, are prices better than aws?

Can you do a video doing the same process in aws? Maybe with fargate

guzidev
Автор

very nice. can i change the domain name too?

greendsnow