Skip to content

Commit

Permalink
modify environment
Browse files Browse the repository at this point in the history
  • Loading branch information
yinchang0626 committed Dec 23, 2020
1 parent a4254c6 commit 01f318c
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 42 deletions.
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "packages"]
path = packages
url = https://github.com/yinchang0626/abp.ng.packages.git
branch = develop
2 changes: 1 addition & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -595,5 +595,5 @@
"unitTestRunner": "jest"
}
},
"defaultProject": "tmpl.dev-app"
"defaultProject": "volo.dev-app"
}
8 changes: 4 additions & 4 deletions apps/dev-app/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ export const environment = {
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44356',
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'FS_App',
clientId: 'MyProjectName_App',
responseType: 'code',
scope: 'offline_access FS',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44356',
rootNamespace: 'FS',
rootNamespace: 'MyCompanyName.MyProjectName',
},
},
} as Environment;
12 changes: 6 additions & 6 deletions apps/dev-app/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ export const environment = {
production: false,
application: {
baseUrl,
name: 'FS',
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44309',
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'FS_App',
clientId: 'MyProjectName_App',
responseType: 'password',
scope: 'offline_access FS',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44309',
rootNamespace: 'FS',
url: 'https://localhost:44305',
rootNamespace: 'MyCompanyName.MyProjectName',
},
},
} as Environment;
14 changes: 7 additions & 7 deletions apps/ng-alain-app/src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
import { Config } from '@abp/ng.core';
import { Environment } from '@abp/ng.core';

const baseUrl = 'http://localhost:4200';

export const environment = {
production: true,
hmr: false,
application: {
baseUrl,
name: 'FS',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44309',
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'FS_App',
clientId: 'MyProjectName_App',
responseType: 'code',
scope: 'offline_access FS',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44309',
url: 'https://localhost:44356',
rootNamespace: 'MyCompanyName.MyProjectName',
},
},
} as Config.Environment;
} as Environment;
30 changes: 7 additions & 23 deletions apps/ng-alain-app/src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,36 +6,20 @@ export const environment = {
production: false,
application: {
baseUrl,
name: 'FS',
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44309',
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'FS_App',
clientId: 'MyProjectName_App',
responseType: 'password',
scope: 'offline_access FS',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44309',
rootNamespace: 'FS',
},
AbpFeatureManagement: {
url: 'https://localhost:44309',
rootNamespace: 'Volo.Abp',
},
AbpPermissionManagement: {
url: 'https://localhost:44309',
rootNamespace: 'Volo.Abp.PermissionManagement',
},
AbpTenantManagement: {
url: 'https://localhost:44309',
rootNamespace: 'Volo.Abp.TenantManagement',
},
AbpIdentity: {
url: 'https://localhost:44309',
rootNamespace: 'Volo.Abp',
url: 'https://localhost:44305',
rootNamespace: 'MyCompanyName.MyProjectName',
},
},
} as Environment;

2 changes: 1 addition & 1 deletion config/angular.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"unitTestRunner": "jest"
}
},
"defaultProject": "tmpl.dev-app"
"defaultProject": "volo.dev-app"
}

0 comments on commit 01f318c

Please sign in to comment.