Deploy a Serverless NestJS App to Google Cloud Run

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 26

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

    If you are wondering why it is showing a React app in the end, it is because I'm reusing video parts because the logic is the same.

  • @adamsoto3988
    @adamsoto3988 8 หลายเดือนก่อน

    Still accurate two years later, thanks mate !

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

    You're a great teacher!
    Thank you!

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

    Another nice piece of work. but I have question
    After docker build you run the app and it was nestjs - hello world
    but in the last it was reactjs web app.
    how?

    • @juanjojaramillo7755
      @juanjojaramillo7755 2 ปีที่แล้ว

      You can build a React Js app and get it in static files, so in nest js you can serve this files without problems.

  • @dawid_dahl
    @dawid_dahl 10 หลายเดือนก่อน

    Thank so much! Do you have something with CloudSQL too?

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

    Very helpful. Thanks !

  • @jayantsr
    @jayantsr 2 ปีที่แล้ว

    Help Required !! Thanks for the wornderful tutorial. But I am getting an erron in Cloud Run "The user-provided container failed to start and listen on the port defined provided by the PORT=3000 environment variable. Logs for this revision might contain more information."

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

      you should use PORT=80

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

      You must provide the same port you are using to run your application on Cloud Run

  • @yosepmys7605
    @yosepmys7605 2 ปีที่แล้ว

    Following this tutorial but stuck at docker run. Docker are running on exact port (8888), but when I accessed it, return ‘localhost didn’t send any data’. Any suggest?

    • @yosepmys7605
      @yosepmys7605 2 ปีที่แล้ว

      Solved by -p 8888:3000 because nestjs default run on port 3000. New problem: still couldn’t deploy on Cloud Run :D

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

    I made the same thing, but in my case after create service cloud run, the end of process is giving the error below.
    The user-provided container failed to start and listen on the port defined provided by the PORT=80 environment variable. Logs for this revision might contain more information
    I am using the port 80 like the video
    Someone think the fix?

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

      You must provide the same port you are using to run your application on Cloud Run

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

    U know a lot of stuff , may I know ur age? Btw I am 18.

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

      I'm 30, been coding since ~20

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

      @@ScalableScripts damn bro why are you on youtube , why not doing a 6figures paying job?

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

      I don't enjoy working for someone else, also corporate has a lot of meaningless meetings and tasks. I work harder on my own.

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

      @@ScalableScripts that's super true nonsense meetings

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

      @@truelife9859 productive meetings are necessary when working on teams. Meaningless meatings are shit, but productive and goal-oriented meetings are a must-have for a well developed product. This comes from a dev that finds meetings boring, so yeah

  • @pisanghangus2
    @pisanghangus2 2 ปีที่แล้ว

    Step 3/12 : COPY package*.json .
    When using COPY with more than one source file, the destination must be a directory and end with a /
    this works instead
    COPY package*.json ./

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

    Very helpful - Thanks !
    BTW, I got a permission error when using docker push.
    It seems that this error happens to Powershell users, the fix was in stackoverflow, the link is :
    stackoverflow.com/a/67595469/12991445