Skip to content

Commit

Permalink
changes to config
Browse files Browse the repository at this point in the history
  • Loading branch information
devireddyprasanth22 committed Sep 19, 2024
1 parent d092d36 commit 07b961a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +1 @@
SITES_CONFIG=config.json
SITES_CONFIG=config.json
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
- gh-actions
pull_request:
env:
SITES_CONFIG: config.example.json
SITES_CONFIG: config.json
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -30,4 +30,4 @@ jobs:
build/libs/*.jar
!build/libs/*-plain.jar
LICENSE
README.md
README.md
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM gradle:8-jdk17-jammy AS gradle-builder
WORKDIR /opt/idle-device-management
ENV SITES_CONFIG=config.example.json
ENV SITES_CONFIG=config.json
COPY . .
RUN gradle build

Expand All @@ -12,4 +12,4 @@ WORKDIR /opt/idle-device-management
# copy jar
COPY --from=gradle-builder /opt/idle-device-management/build/libs/idle-device-management-$VERSION.jar idle-device-management.jar
EXPOSE 4100
CMD ["java", "-jar", "-Dspring.profiles.active=prod", "/opt/idle-device-management/idle-device-management.jar"]
CMD ["java", "-jar", "-Dspring.profiles.active=prod", "/opt/idle-device-management/idle-device-management.jar"]
2 changes: 1 addition & 1 deletion src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ management:
idle-device-management:
sites-config: ${SITES_CONFIG:#{"config.json"}}
frontend-url: ${FRONTEND_URL:#{"http://localhost:3000"}}
allow-all-cors-origins: ${ALLOW_ALL_CORS_ORIGINS:#{false}}
allow-all-cors-origins: ${ALLOW_ALL_CORS_ORIGINS:#{false}}
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ management:
idle-device-management:
sites-config: ${SITES_CONFIG:#{"config.json"}}
frontend-url: ${FRONTEND_URL:#{"http://localhost:3000"}}
allow-all-cors-origins: ${ALLOW_ALL_CORS_ORIGINS:#{false}}
allow-all-cors-origins: ${ALLOW_ALL_CORS_ORIGINS:#{false}}

0 comments on commit 07b961a

Please sign in to comment.