How To Deploy NEXTJS App to Google Cloud (GCP) - Using Docker & Cloud Run

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ • 12

  • @samarthchouksey4460
    @samarthchouksey4460 6 місяців тому

    Thanks for this! I was looking for a to the point tutorial and then I find yours. Perfect!

  • @MochammadYusufFachroni
    @MochammadYusufFachroni 3 місяці тому

    thanks for the tutorial, but I failed to get env value from "variable and secret" (on 5:15) on cloud run (the name is NEXT_PUBLIC_BACKEND_URL and I call it with process.env.NEXT_PUBLIC_BACKEND_URL). do you know why?

    • @BinaryCorner
      @BinaryCorner  2 місяці тому

      Yes, I realised later. You can fix this by adding the env argument in the docker for these NEXT_PUBLIC_....
      They do not work from "variables and secret" because they are applied during the project build time, not the run time.

    • @badaljain77
      @badaljain77 2 місяці тому

      @@BinaryCorner I provided the NEXT_... env vars in the variables and secrets and it worked fine. Although I agree with your vars at build time. Could you please tell me why did they work?

    • @BinaryCorner
      @BinaryCorner  2 місяці тому

      Maybe you are pushing the .env file also with the code. So Nextjs picking the env from directory .env during the build process.

    • @Zrrryvhh
      @Zrrryvhh Місяць тому

      i am facing issue with the env i am confused how can i use it how can i add the reqiared filed in docker file can you please tell me how execlty can i do it it will be a greate hel Thanks

  • @ratul1125
    @ratul1125 8 місяців тому

    straightforward and on point tutorial. Thanks, man! Subbed 😊😊

  • @TemitopeOmoniyi
    @TemitopeOmoniyi 4 місяці тому

    Thanks. It also gets complicated when you throw in .env variables and a db

  • @navinkumar6388
    @navinkumar6388 6 місяців тому

    Simple and focused
    Thanks 🙏
    How to play with 2 versions of the same application (Canary Deployment)

    • @BinaryCorner
      @BinaryCorner  6 місяців тому

      You can create multiple cloud run apps

    • @navinkumar6388
      @navinkumar6388 6 місяців тому

      @@BinaryCorner
      Thanks 🙏

  • @christophermarshall3702
    @christophermarshall3702 5 місяців тому

    Would love to see this over in aws