SpringBoot app is not running even deployed

Aslam Bari 6 Reputation points
2020-07-31T14:21:52.067+00:00

Hi All
I am using GitHub action workflow (yml) for deploying springboot web application. My platform is linux and Java 11.
The github showing success deployment.

But my application still not updated and showing default azure home page.

14898-image.png

14899-image.png

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,468 questions
{count} vote

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 18,821 Reputation points
    2020-07-31T22:57:45.9+00:00

    Hi @AlsamBari-6443,

    When deploying Java apps, make sure you specify the package name relative from the root directory. Most likely, your deployment artifact will be in the target/ directory. Also, please make sure your Azure App Service Web App has "Java SE" configured as the stack under "General settings" from the "Configuration" menu option. There are two "Java SE" options, one for "Java 8" and another for "Java 11".

    Please see this blog post for more information. Let us know if you have further questions

    Thanks,

    Grace


  2. Aslam Bari 6 Reputation points
    2020-08-03T07:14:36.397+00:00

    This is my yml file:

    name: Build and deploy WAR app to Azure Web App -

    on:
    push:
    branches:

    • master

    jobs:
    build-and-deploy:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@master
    
    - name: Set up Java version
      uses: actions/setup-java@v1
      with:
        java-version: '11'
    
    - name: Build with Maven
      run: mvn clean install
    
    - uses: azure/login@v1
      with:
        creds: ${{ secrets.AZURE_CREDENTIALS }}
    
    - name: Deploy to Azure Web App
      uses: azure/webapps-deploy@v1
      with:
        app-name: 'blufypoc'
        slot-name: 'production'
        publish-profile: ${{ secrets.AzureAppService_PublishProfile_c2ac39957f294c248c77730d8eaa1245 }}
        package: '${{ github.workspace }}/target/*.jar'
    

    I have set Java 11 properly already

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.