Skip to content

Missing wiki info how to use env profiles (with Srping Boot) #165

Open

Description

@MartinX3

The Azure Web App always runs the Spring Boot project without any env profile.

I already tried the following without success:

  • gradle parameter gradle azureWebAppDeploy -Dspring.profiles.active=prod
  • env variable in the web app and ci stage SPRING_PROFILES_ACTIVE=prod

Activity

  1. dimasikturbo commented on Nov 19, 2023

    @dimasikturbo

    Hi there,

    This worked for me:

    azurefunctions {
    ...
        appSettings {
            ...
            SPRING_PROFILES_ACTIVE = 'prod'
        }
    }
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions