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

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии •

  • @ConsultingNinja
    @ConsultingNinja  9 месяцев назад

    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!

  • @adhecson
    @adhecson Год назад +3

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

    • @ConsultingNinja
      @ConsultingNinja  Год назад +1

      I will add that to my list of videos. Thank you for watching!

  • @superspamtube7464
    @superspamtube7464 Год назад

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

    • @ConsultingNinja
      @ConsultingNinja  Год назад

      Yes, and very generous free tier. So far the most generous I have found. You can also add volume storage very easily. This is VERY promising! Thank you!

  • @yinghuayin9152
    @yinghuayin9152 Месяц назад

    does Dockerfile has to be the same path with .dockerignore?

  • @meka4996
    @meka4996 Год назад

    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

    • @ConsultingNinja
      @ConsultingNinja  Год назад +1

      Ok, awesome! Glad you figured that out. You can also setup the server to run by modifying the Vite config file and setting the server prop with your choice. Thank you for watching!

  • @scott_itall8638
    @scott_itall8638 Год назад

    Could you do a PocketBase and Sveltekit Docker run through?

  • @uch195
    @uch195 Год назад

    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?

    • @ConsultingNinja
      @ConsultingNinja  Год назад

      I have not run into that. You have followed the example EXACTLY as I showed and it is not detecting the docker file? Are there error messages?

    • @CG12358
      @CG12358 Год назад

      Same, I followed EXACTLY and it's doing the same thing

    • @ConsultingNinja
      @ConsultingNinja  Год назад

      Are you getting error messages?

    • @CG12358
      @CG12358 Год назад

      @@ConsultingNinja No error messages, just only NodeJS detected. Looks like it's a common problem online. This video was published 5 months ago, so maybe has something to do with a lot of the changes made to SvelteKit over the past few months.

    • @ConsultingNinja
      @ConsultingNinja  Год назад

      I will try to take a look at that soon.

  • @guzidev
    @guzidev Год назад

    It looks super cool 🎉, are prices better than aws?
    Can you do a video doing the same process in aws? Maybe with fargate

    • @ConsultingNinja
      @ConsultingNinja  Год назад +3

      I am still comparing prices. But I will let you know when I can say for sure. I will say that Fly.io doesn't have a time limit on their free tier like AWS and you can keep a full stack app there according to their current documentation. I have TONS of videos I have in line. One of them yes is deploying to AWS. As far as deployment videos I have Linode up next (which was just purchased by Akamai) and then AWS. I will add a poll to see if should switch those. Thank you for watching and the feedback!

    • @guzidev
      @guzidev Год назад +1

      @@ConsultingNinja nice, thank you I appreciate your support

    • @ConsultingNinja
      @ConsultingNinja  Год назад +1

      You are very welcome I am really here to help!, be sure to vote in the poll (community section of my channel) to make sure your voice is heard!

    • @jatidevelopments
      @jatidevelopments Год назад

      @@ConsultingNinja Do you have any Update on this? How is the pricing compared to AWS?

  • @jordanchristley1306
    @jordanchristley1306 Год назад

    great vid

  • @gabrielcastillo1454
    @gabrielcastillo1454 3 месяца назад

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

  • @greendsnow
    @greendsnow Год назад

    very nice. can i change the domain name too?

    • @ConsultingNinja
      @ConsultingNinja  Год назад +1

      Yes, of course you can. If you want to use a custom domain you will have to allocate an IP. They have so many people using the service now they use shared IP's now by default (routing with hashes and keys internally) and if you want your own IP you just have to enter a command. You can allocate an IPv4 address by running the following:
      fly ips allocate-v4
      fly.io/docs/getting-started/multi-region-databases/#allocating-an-ip-address