Deploy Python on Firebase Hosting with Cloud Run - Firecasts

Поделиться
HTML-код
  • Опубликовано: 1 окт 2024
  • Welcome to a new episode of Firecasts, today we’re going to be using Firebase Hosting and Cloud Run to host a flask server. Find out what Cloud Run is, how you can deploy Python on Firebase Hosting with Docker, and more on this episode with our Firebase Developer Advocate David East.
    gcloud SDK → goo.gle/2wDXf1a
    Firecasts for Firebase Developers playlist → goo.gle/Firecasts
    Subscribe to Firebase → goo.gle/Firebase

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

  • @tekanokhambane4348
    @tekanokhambane4348 4 года назад +5

    Can you please make a tutorial for hosting django applications

  • @hanzvanaardt3447
    @hanzvanaardt3447 4 года назад +9

    Excellent video - thank you for spending the time to say so much in so little time.

  • @MONTYJONTYofficial
    @MONTYJONTYofficial 4 года назад +3

    Hey this was not hard but I am confused for doing same as this in my Django project. When I contacted Firebase by mail they sent me this video link

  • @rprashanth1986
    @rprashanth1986 4 года назад +8

    Love the output from styles applied!

  • @mattd2185j
    @mattd2185j 4 года назад +3

    I got the 503 error code. Turns out my Docker wasn't working locally either. When fixed I could push it to the EuropeWest server. Works like a charm!

  • @subijoyacharya3189
    @subijoyacharya3189 3 года назад +3

    Thank you. Please do a video on deploying Django on Firebase.

  • @שחריעקב-ק9כ
    @שחריעקב-ק9כ 3 года назад +2

    How can I deploy react app as frontend with flask-python as backend?

  • @amanpreetsinghchopra3046
    @amanpreetsinghchopra3046 4 года назад +3

    Thanks!! Have been waiting from a long time for this. Just to clarify....will I be charged for using the cloud run?

    • @irishfitz
      @irishfitz 4 года назад

      Depends, it's a pay as you go plan, I'd read the plan details to be the utmost clear on the topic.

  • @guanacodevs
    @guanacodevs 4 года назад +2

    What's the benefit of deploying the web app to Cloud Run instead of App Engine? The CDN cache?
    Wanted to use a subdomain for dynamic links while my static site was being hosted in Firebase Hosting, couldn't make it work so I removed the Hosting from Firebase and created a Web app to host it in App Engine.
    At the moment I find this overly complicated(Compared to deploy to GAE), but I can see the benefit of the CDN Cache can I do something similar in GAE or it has to be a container?
    You guys always post answers to my needs a month after I found a solution :D :D

  • @subijoyacharya3189
    @subijoyacharya3189 3 года назад +1

    Please do a video on integrating firebase database with django website.

  • @paulocoronado2376
    @paulocoronado2376 4 года назад +2

    Great video! But why running dynamic content through Cloud Run if you can just run it via Firebase Hosting? Thanks!!

    • @Frank_van_Puffelen
      @Frank_van_Puffelen 4 года назад +4

      You can't run any code on Firebase Hosting, as it only serves static content. But you can connect Firebase Hosting with either Cloud Run or Cloud Functions to get your dynamic content generated by those services hosted on Firebase.

  • @mushfiqurrahmanphdstudentn2101

    I am getting this error "(gcloud.run.deploy) spec.traffic.tag: Resource name must use only lowercase letters, numbers and '-'. Must begin with a letter and cannot end with a '-'. Maximum length is 63 characters." when I run the `gcloud run deploy` command.

  • @anakobe
    @anakobe 4 года назад +7

    Not a friendly tutorial for beginners... haha

  • @brianrathbone6046
    @brianrathbone6046 4 года назад +2

    3:53

  • @di.leandro
    @di.leandro Год назад

    Can I integrate my python backend with POST/GET requests to my frontend using this method?

  • @abhirupdas4637
    @abhirupdas4637 2 года назад

    Im migrating from heroku for a small business website in flask, can this be dome without docker/cloud run.., wht is the default domain name and can i add custom domain?

  • @veronicastark3591
    @veronicastark3591 4 года назад +1

    im getting error like this Service
    Unavailable

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

    Stuck at 5:45, gives me an error that service is not available but doesnt tell me why

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

    can i bypass using cloud run and cloud build and use simply github actions??

  • @dinnertonight298
    @dinnertonight298 Год назад +2

    This is amazing! I am so grateful for Google. This is undoubtedly the best hosting platform out there based on what I'm looking for and I just want to say that learning about Google Firebase has really made my week, and I can't wait to learn it. Have an amazing day, and if you reply to this, include a pizza place nearby and a place I should send it to at a specific time in the near future and I'll order you guys a pizza.

  • @hykathon
    @hykathon 3 года назад

    Does anyone know how I can debug cloud run code locally?
    I'd like to load firebase hosting's init.json from cloud run, but in local, it does not work.

  • @theindianguy14
    @theindianguy14 4 года назад +5

    Will that means we can use php too in cloud run with firebase hosting?

    • @SterenTV
      @SterenTV 4 года назад +2

      Yes, you can run any language on Cloud Run. For a PHP sample, check out this quickstart: cloud.google.com/run/docs/quickstarts/build-and-deploy

  • @lemono1664
    @lemono1664 4 года назад +1

    dose ot work with Django

  • @kanishkamrev1210
    @kanishkamrev1210 4 года назад

    Getting below error on 07:44
    Error:404 Requested entity not found
    when entering
    node_modules/.bin/firebase serve
    Any idea?

  • @somayajisubs
    @somayajisubs 4 года назад

    firebase hosting are hosted in uscentral1 region, care while selecting cloud run and firestore, we are locked to uscentral1 if you are using firbase hosting, we can't use firestore from other than uscentral1 because of latency

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

    What editor are you using? I'm using MU and I cannot do anything that you are doing on screen. All I can do is write the codes but I cannot access the folders or create the folders like you are doing.

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

    can we deploy here for free or is there some charges?

  • @maisum279
    @maisum279 4 года назад +2

    Error: Service Unavailable

  • @vaibhavtiwari1191
    @vaibhavtiwari1191 4 года назад

    Why don't 🙄🤔 u make a bot should I teach you

  • @chrish5723
    @chrish5723 4 года назад +1

    Great video, thanks.

  • @haoweizeng6709
    @haoweizeng6709 2 года назад

    Can I custom hosting region? It will increase latency if rewriting firebase.json rule and cloud run service not in US

    • @Frank_van_Puffelen
      @Frank_van_Puffelen 2 года назад +1

      The ability to rewrite from Hosting to a specific region for Cloud Functions was actually *just* added. See the updated documentation here: firebase.google.com/docs/hosting/functions#direct-requests-to-function

  • @Darius_K
    @Darius_K 3 года назад

    can i use another python libs like numpy or opencv ?

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

    complete noice!!!!

  • @Marco-cx6gp
    @Marco-cx6gp 2 года назад

    Hey guys I want to deploy a small flask backend in firebase. Is it really free according to the limitations stated in the pricing page of their website or is there some hidden fee? Since I'm on a budget I'd like not to waste money, and yeh I'd like to use the free tier for the first months in production. Does it seem like a good idea or have any suggestions? Thank you in advance

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

      you can have 250k requests per month and it would still be free so don't worry

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 года назад

    What is the purpose of controlling the CDN cache?

  • @kamarton
    @kamarton 3 года назад

    The video is great. I think cloud run + cloudflare cdn is cheaper.

  • @bhanushah9849
    @bhanushah9849 3 года назад

    does anyone have the source codeS?

  • @edimalok4707
    @edimalok4707 4 года назад

    is there a way to split traffic between more than one version in firebase hosting

  • @zeeshanans
    @zeeshanans 4 года назад

    Is there any way I can pick different region without extra latency?

  • @dennisantonyswamy7759
    @dennisantonyswamy7759 4 года назад

    So is cloud run and build going to be an alternative for SSR app?

  • @vaibhavtiwari1191
    @vaibhavtiwari1191 4 года назад

    Only 440 likes??????????

  • @nurnahar8967
    @nurnahar8967 4 года назад

    how to use goo.gl shoortner

  • @Ihavetoreturnsomevideotapes
    @Ihavetoreturnsomevideotapes 4 года назад +5

    Thank you have been waiting for a flask video so long

  • @fabianrinortner9391
    @fabianrinortner9391 4 года назад

    I really got stuck on implementing this.
    Basically, I do the exact same thing with my angular app.
    The only difference is that I use for hosting "europe-west1".
    Has anyone similar issues? :)

    • @mattd2185j
      @mattd2185j 4 года назад

      I got an 503 error, also with europe-west1

    • @mattd2185j
      @mattd2185j 4 года назад

      changing the region didn't fix it though

  • @brianrathbone6046
    @brianrathbone6046 4 года назад

    5:05

  • @LawZist
    @LawZist 4 года назад

    source code would be nice :)

  • @anupam2954
    @anupam2954 3 года назад

    Is it possible to do this using django?

  • @zingg7203
    @zingg7203 4 года назад

    Have fun with CORS

    • @poke_champ
      @poke_champ 4 года назад +1

      Zingg just use flask-CORS

  • @rohitkukreja8704
    @rohitkukreja8704 3 года назад +1

    Loved the fact that Google People using MicroSoft's VS Code.