Deploy Python on Firebase Hosting with Cloud Run - Firecasts

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 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

  • @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!

  • @rprashanth1986
    @rprashanth1986 4 ปีที่แล้ว +8

    Love the output from styles applied!

  • @hanzvanaardt3447
    @hanzvanaardt3447 4 ปีที่แล้ว +9

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

  • @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.

  • @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

  • @subijoyacharya3189
    @subijoyacharya3189 3 ปีที่แล้ว +3

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

  • @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

    • @vincelupo8419
      @vincelupo8419 ปีที่แล้ว

      What did your answer end up being?

  • @tekanokhambane4348
    @tekanokhambane4348 4 ปีที่แล้ว +5

    Can you please make a tutorial for hosting django applications

  • @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.

  • @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.

  • @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.

  • @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

  • @subijoyacharya3189
    @subijoyacharya3189 3 ปีที่แล้ว +1

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

  • @rohitkukreja8704
    @rohitkukreja8704 3 ปีที่แล้ว +1

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

  • @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

  • @di.leandro
    @di.leandro ปีที่แล้ว

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

  • @שחריעקב-ק9כ
    @שחריעקב-ק9כ 3 ปีที่แล้ว +2

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

  • @dennisantonyswamy7759
    @dennisantonyswamy7759 4 ปีที่แล้ว

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

  • @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?

  • @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

  • @edimalok4707
    @edimalok4707 4 ปีที่แล้ว

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

  • @user-or7ji5hv8y
    @user-or7ji5hv8y 4 ปีที่แล้ว

    What is the purpose of controlling the CDN cache?

  • @zeeshanans
    @zeeshanans 4 ปีที่แล้ว

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

  • @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??

  • @Ihavetoreturnsomevideotapes
    @Ihavetoreturnsomevideotapes 4 ปีที่แล้ว +5

    Thank you have been waiting for a flask video so long

  • @mushfiqurrahmanphdstudentn2101
    @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.

  • @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

  • @chrish5723
    @chrish5723 4 ปีที่แล้ว +1

    Great video, thanks.

  • @Darius_K
    @Darius_K 3 ปีที่แล้ว

    can i use another python libs like numpy or opencv ?

  • @kanishkamrev1210
    @kanishkamrev1210 4 ปีที่แล้ว

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

  • @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.

  • @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

  • @kamarton
    @kamarton 3 ปีที่แล้ว

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

  • @lemono1664
    @lemono1664 4 ปีที่แล้ว +1

    dose ot work with Django

  • @ridhima918
    @ridhima918 ปีที่แล้ว

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

  • @anupam2954
    @anupam2954 3 ปีที่แล้ว

    Is it possible to do this using django?

  • @brianrathbone6046
    @brianrathbone6046 4 ปีที่แล้ว +2

    3:53

  • @zingg7203
    @zingg7203 4 ปีที่แล้ว

    Have fun with CORS

    • @poke_champ
      @poke_champ 4 ปีที่แล้ว +1

      Zingg just use flask-CORS

  • @bhanushah9849
    @bhanushah9849 3 ปีที่แล้ว

    does anyone have the source codeS?

  • @abhirupdas4637
    @abhirupdas4637 ปีที่แล้ว

    complete noice!!!!

  • @maisum279
    @maisum279 4 ปีที่แล้ว +2

    Error: Service Unavailable

  • @veronicastark3591
    @veronicastark3591 4 ปีที่แล้ว +1

    im getting error like this Service
    Unavailable

  • @LawZist
    @LawZist 4 ปีที่แล้ว

    source code would be nice :)

  • @brianrathbone6046
    @brianrathbone6046 4 ปีที่แล้ว

    5:05

  • @vaibhavtiwari1191
    @vaibhavtiwari1191 4 ปีที่แล้ว

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

  • @anakobe
    @anakobe 4 ปีที่แล้ว +7

    Not a friendly tutorial for beginners... haha

  • @vaibhavtiwari1191
    @vaibhavtiwari1191 4 ปีที่แล้ว

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

  • @nurnahar8967
    @nurnahar8967 4 ปีที่แล้ว

    how to use goo.gl shoortner