Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 6f85e84

Browse files
Merge pull request #171 from brunohbrito/dev
bug fix + prd setts
2 parents 9675f70 + eaa41d5 commit 6f85e84

5 files changed

Lines changed: 108 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Linux users:
2727

2828
## Light Install
2929

30-
You will need to create a Client and API resources in you IdentityServer4. At the end of this section have some shortcuts.
30+
You will need to create a Client and API resources in you IdentityServer4. At the end of this section there are some shortcuts.
3131

3232
1. [Download](https://github.com/brunohbrito/JPProject.IdentityServer4.AdminUI/archive/master.zip)/Clone or [Fork](https://github.com/brunohbrito/JPProject.IdentityServer4.AdminUI/fork) this repository.
3333
2. Open `environment.ts` and change settings for you SSO.
@@ -144,7 +144,7 @@ Api resource configuration
144144
- [Light version](#light-version)
145145
- [Admin UI](#admin-ui)
146146
- [Demo](#demo)
147-
- [We are online at Azure.](#we-are-online-at-azure)
147+
- [We are online](#we-are-online)
148148
- [Technologies](#technologies)
149149
- [Architecture](#architecture)
150150
- [Give a Star! ⭐](#give-a-star-%e2%ad%90)
@@ -171,7 +171,6 @@ The full version is for those who don't have an IdentityServer up and running. S
171171
172172
For those who already have an IdentityServer4. This panel has features to manage an existing **IdentityServer4** database.
173173
174-
175174
Here some screenshots
176175
177176
## Admin UI ##
@@ -181,13 +180,13 @@ Here some screenshots
181180
182181
Check our full demo online.
183182
184-
## We are online at Azure.
183+
## We are online
185184
186185
<img align="right" width="100px" src="https://www.developpez.net/forums/attachments/p289604d1/a/a/a" />
187186
188-
Check it now at [Jp Project](https://jpproject.azurewebsites.net/admin-ui/).
187+
Check it now at [Admin Panel](https://admin.jpproject.net).
189188
190-
You can check also [SSO](https://jpproject.azurewebsites.net/sso/) and [User Management](https://jpproject.azurewebsites.net/user-management/)
189+
You can check also [SSO](https://sso.jpproject.net) and [Profile Manager](https://user.jpproject.net)
191190
192191
_New users are readonly_
193192

admin-ui.dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ WORKDIR /app
1414
COPY ["src/Frontend/Jp.AdminUI/", "/app"]
1515
COPY ["environment.ts", "src/environments/environment.prod.ts"]
1616
# rebuild node
17+
RUN cat src/environments/environment.prod.ts
1718
RUN npm rebuild node-sass
1819
# generate build
1920
RUN npm run ng build -- --configuration=production

azure-pipelines.yml

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# ASP.NET Core
2+
# Build and test ASP.NET Core projects targeting .NET Core.
3+
# Add steps that run tests, create a NuGet package, deploy, and more:
4+
# https://docs.microsoft.com/azure/devops/pipelines/languages/dotnet-core
5+
6+
trigger:
7+
- master
8+
9+
variables:
10+
BuildConfiguration: 'Release'
11+
12+
jobs:
13+
14+
- job: 'net_core'
15+
displayName: '.NET Core Build'
16+
pool:
17+
vmImage: 'ubuntu-latest'
18+
steps:
19+
- task: DotNetCoreCLI@2
20+
displayName: '.NET Core - Restore'
21+
inputs:
22+
command: 'restore'
23+
projects: './src'
24+
feedsToUse: 'select'
25+
26+
- task: DotNetCoreCLI@2
27+
displayName: '.NET Core - Build'
28+
inputs:
29+
command: 'build'
30+
arguments: '-c $(BuildConfiguration) --no-restore'
31+
projects: './src'
32+
33+
- task: DotNetCoreCLI@2
34+
displayName: '.NET Core - Run Tests'
35+
inputs:
36+
command: 'test'
37+
projects: './src'
38+
39+
- task: DotNetCoreCLI@2
40+
displayName: 'Publish - API'
41+
inputs:
42+
command: 'publish'
43+
publishWebProjects: false
44+
projects: '**/JPProject.Admin.Api.csproj'
45+
arguments: '-c $(BuildConfiguration) -o $(Build.StagingDirectory)/api --no-build'
46+
zipAfterPublish: false
47+
modifyOutputPath: false
48+
workingDirectory: './src/Backend/JPProject.Admin.Api'
49+
50+
- task: ArchiveFiles@2
51+
displayName: 'Zip - API'
52+
inputs:
53+
rootFolderOrFile: '$(Build.StagingDirectory)/api/'
54+
includeRootFolder: false
55+
archiveType: 'zip'
56+
archiveFile: '$(Build.ArtifactStagingDirectory)/jpproject.api.$(Build.BuildNumber).zip'
57+
replaceExistingArchive: true
58+
59+
- task: PublishBuildArtifacts@1
60+
displayName: 'Artifact - Generate API'
61+
inputs:
62+
PathtoPublish: '$(Build.ArtifactStagingDirectory)/jpproject.api.$(Build.BuildNumber).zip'
63+
ArtifactName: 'jpproject.api.$(Build.BuildNumber)'
64+
publishLocation: 'Container'
65+
66+
# Angular APP
67+
- job: 'angular'
68+
displayName: 'Angular Build'
69+
pool:
70+
vmImage: 'ubuntu-latest'
71+
steps:
72+
# Admin UI
73+
- task: Npm@1
74+
displayName: 'NPM - Install - AdminUI'
75+
inputs:
76+
command: install
77+
workingDir: src/Frontend/Jp.AdminUI
78+
79+
- task: Npm@1
80+
displayName: 'NPM - Build Prod - AdminUI'
81+
inputs:
82+
command: custom
83+
customCommand: 'run build -- --base-href=/admin-ui/'
84+
workingDir: src/Frontend/Jp.AdminUI
85+
86+
- task: ArchiveFiles@2
87+
displayName: 'ZIP - AdminUI'
88+
inputs:
89+
rootFolderOrFile: 'src/Frontend/Jp.AdminUI/dist/'
90+
includeRootFolder: false
91+
archiveType: 'zip'
92+
archiveFile: '$(Build.ArtifactStagingDirectory)/jpproject.admin-ui.$(Build.BuildNumber).zip'
93+
replaceExistingArchive: true
94+
95+
- task: PublishBuildArtifacts@1
96+
displayName: 'Artifact - Generate - AdminUI'
97+
inputs:
98+
PathtoPublish: '$(Build.ArtifactStagingDirectory)/jpproject.admin-ui.$(Build.BuildNumber).zip'
99+
ArtifactName: 'jpproject.admin-ui.$(Build.BuildNumber)'
100+
publishLocation: 'Container'

build/continuous-delivery/admin-prod.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ COPY ["src/Frontend/Jp.AdminUI/", "/app"]
1515
# rebuild node
1616
RUN npm rebuild node-sass
1717
# generate build
18-
RUN npm run ng build -- --configuration=production
18+
RUN npm run ng build
1919

2020
##################
2121
### production ###

environment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const environment = {
2-
production: false,
2+
production: true,
33
IssuerUri: "http://jpproject-sso:5001",
44
ResourceServer: "http://localhost:5002/",
55
RequireHttps: false,

0 commit comments

Comments
 (0)