A step by step guide to deploy your first Springboot application on Google Cloud (GCP)

แชร์
ฝัง

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

  • @codeWithRaman
    @codeWithRaman  4 หลายเดือนก่อน +2

    To Stop GCP instance .
    1. Open your web browser and go to the Google Cloud Console.
    2. In the Google Cloud Console, go to the Compute Engine section by selecting the Navigation menu (three horizontal lines) and then Compute Engine > VM instances.
    3. You will see a list of your VM instances. Find the instance you want to stop.
    4. Click the checkbox next to the instance name to select it.
    At the top of the page, click the Stop button.
    To Stop MySQL Instance
    1. Open your web browser and go to the Google Cloud Console.
    2. In the Google Cloud Console, go to the Navigation menu (three horizontal lines) and then SQL > Instances.
    3. You will see a list of your Cloud SQL instances. Find the MySQL instance you want to delete.
    4. Click on the instance name to open its details page.
    5. At the top of the instance details page, click the Delete button.
    6. In the confirmation dialog, type the instance ID to confirm and then click Delete.

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

    Thank you sir

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

    when you are going to launch the springboot application with database deployment of GCP?

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

      Hello , thanks for your comment .I am planning on this surely soon the video will be out .

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

      This Thursday we are uploading a video of how to work with my SQL using GCP .Do watch it and share among your contacts .
      Thanks

  • @antonioespinosa13ae
    @antonioespinosa13ae หลายเดือนก่อน +1

    Thank for the video, it's really helpful and solved some of my problems.
    But... I deployed my Spring Boot app to Google Cloud App Engine, and it stops suddenly and randomly. When I hit any endpoint, the app restarts, taking around 30 seconds to spin up again. In the logs, the only thing I see is a warning that the app is stopping. Locally, the app works perfectly without any issues.
    Can U help me to keep alive the app in GCloud?

    • @codeWithRaman
      @codeWithRaman  หลายเดือนก่อน +1

      Hi , yes it is an issue with the app engine . You can create a .yaml file at the root directory of appenginer and there something called as min_instance you can set that value to 1 that way if your application is ideal then also it will not stop .
      automatic_scaling:
      min_instances: 1

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

      @@codeWithRaman Great! Your response solved my bug. I've created an app.yaml with this info:
      runtime: java
      env: flex
      runtime_config:
      operating_system: "ubuntu22"
      runtime_version: "21"
      manual_scaling:
      instances: 1
      handlers:
      - url: /.*
      script: this field is required, but ignored
      Thank's for all!

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

    Error: Server Error
    The server encountered an error and could not complete your request.
    Please try again in 30 seconds.

  • @BalMukundSingh241
    @BalMukundSingh241 4 หลายเดือนก่อน

    1. Could you please also add one more info in the video, that once you started your spring application, how to stop the application, how to stop MySQL database instance, the reason I am asking, I guess after watching your video I forgot to stop the same, now after 3 days I can see they have charged 10,500/- INR [ 125.40 USD]. For meanwhile I have stopped billing at the same amount.
    2. This is really important to stop services, please provide video to stop all services.
    3. I have seen where $300 can be used as a trial, then in this case they should not charge me ?

    • @codeWithRaman
      @codeWithRaman  4 หลายเดือนก่อน +1

      Hi @BalMukundSingh241 , yes that is a miss in my video . They charge as per your DB requests and the time your instance is up . Surely your feedback taken will update this that how to stop the instance . Below are few steps to stop your GCP instance and also stopping your Mysql Instance
      1. Open your web browser and go to the Google Cloud Console.
      2. In the Google Cloud Console, go to the Compute Engine section by selecting the Navigation menu (three horizontal lines) and then Compute Engine > VM instances.
      3. You will see a list of your VM instances. Find the instance you want to stop.
      4. Click the checkbox next to the instance name to select it.
      At the top of the page, click the Stop button.
      To Stop MySQL Instance
      1. Open your web browser and go to the Google Cloud Console.
      2. In the Google Cloud Console, go to the Navigation menu (three horizontal lines) and then SQL > Instances.
      3. You will see a list of your Cloud SQL instances. Find the MySQL instance you want to delete.
      4. Click on the instance name to open its details page.
      5. At the top of the instance details page, click the Delete button.
      6. In the confirmation dialog, type the instance ID to confirm and then click Delete.

  • @namnguyenhoai9850
    @namnguyenhoai9850 6 หลายเดือนก่อน +1

    I followed each step as shown in the video, but when I run the browser it says Service Unavailable

    • @codeWithRaman
      @codeWithRaman  6 หลายเดือนก่อน

      Need to identify is it GCP issue or your service issue . Can you share the logs from there we can identify the issue

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

    do u deploy this project on vm or not?

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

      Hi thanks for commenting.No I did not deploy this project on VM

  • @makarandburud2909
    @makarandburud2909 6 หลายเดือนก่อน

    what if i want to make some changes in my application.properties file do i need to make new jar ever time for build or is there any alternative way to do cloud run

    • @codeWithRaman
      @codeWithRaman  6 หลายเดือนก่อน +1

      No , you don't need to make the Jar again and again . You can externalize your configuration using environment variables. This way, you can update the environment variables without changing the JAR file.

  • @memer_mayya
    @memer_mayya 7 หลายเดือนก่อน +1

    Can u please tell how I can run my spring boot project globally with with just single link

    • @codeWithRaman
      @codeWithRaman  7 หลายเดือนก่อน

      Surely you can do that , by deploying your application to cloud and the containerizing it , configure/ expose your application using appropriate networking configurations and then you can make a single link of you application either by domain or IP and access it .

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

    Can u please explain how to deploy on aws and also how to load balance our project on aws and Google cloud
    Thanks

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

      Sure I'll make a video of how to deploy an application on AwS elastic beanstalk .

  • @Akhi.yt45
    @Akhi.yt45 ปีที่แล้ว

    i did a payment more then 12 times but unfortunately the Google billing is not getting completed & throwing me error obasch typee accurately I didn't recognised if you know please help mee

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

      Hi, thanks for writing. I did not get your query, is there any issue related to code? If it is related to google account setup I would rather say you should contact google customer service, as they are better of in helping you in the setup process

  • @gTosca_666
    @gTosca_666 5 หลายเดือนก่อน

    Mi app funciona muy bien localmente, pero al subirlo : Service Unavailable

    • @codeWithRaman
      @codeWithRaman  4 หลายเดือนก่อน

      Tendría que comprobar sus registros de GCP. Sólo entonces sabremos por qué viene el servicio no disponible.

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

    I keep getting this error
    Error: Server Error
    The server encountered an error and could not complete your request.
    Please try again in 30 seconds.

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

      Hi, thanks for writing. When are you getting this error, while deploying or after you have deployed and trying to hit some endpoint?

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

      @@codeWithRaman after I’ve deployed

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

      @@gideonamoako7658 hi, please can you share the exact logs from your IDE so that i can check and revert. Please share on ramanpopli19@gmail.com

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

    I completed the credit card registration steps, but an error occurred

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

      Hi thanks for writing. I guess some server error, as not something technical in it. You can refresh and check again.

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

      @@codeWithRaman Can you help me link my account to my credit card because it appears I have orchi type problems and I tried multiple accounts and more than one device and more than one card and I made sure that this process is stopped in Africa Is it possible to help me since you are in India to do this feature for me and thank you again

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

      @@almobarmg1 Hi, I can guide you, but i can not take your details n do it on your behalf nor I can do it for by my details. If any help required in code , I am surely available to help you. But i would request to either find out some alternative solutions.