Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c3550db

Browse files
committed
Fix config file
1 parent 801058e commit c3550db

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ in [package.json](package.json) file.
5757

5858
Runs the app in the development mode.
5959

60-
Open http://localhost:4200 to view it in the browser.
60+
Open http://localhost:3000 to view it in the browser.
6161

6262
#### 4. Run `npm build`
6363

‎src/app/app.config.ts‎

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
import { Injectable } from '@angular/core';
2+
import { environment } from '../environments/environment';
23

3-
const hostApi =
4-
process.env.NODE_ENV !== 'development' ? 'http://localhost' : '';
5-
const portApi = process.env.NODE_ENV !== 'development' ? 8080 : '';
4+
const hostApi = process.env.NODE_ENV === 'development' ? 'http://localhost' : 'https://sing-generator-node.herokuapp.com';
5+
const portApi = process.env.NODE_ENV === 'development' ? '8080' : '';
66
const baseURLApi = `${hostApi}${portApi ? `:${portApi}` : ``}`;
77

88
@Injectable({
9-
providedIn: 'root',
9+
providedIn: 'root'
1010
})
1111
export class AppConfig {
1212
config = {
13-
version: '4.0.0',
14-
remote: '',
13+
version: '1.2.0',
14+
remote: 'https://sing-generator-node.herokuapp.com',
15+
isBackend: environment.backend,
1516
hostApi,
1617
portApi,
1718
baseURLApi,
1819
auth: {
1920
email: 'admin@flatlogic.com',
20-
password: 'password',
21+
password: 'password'
2122
},
2223
};
2324

24-
constructor() {}
25+
constructor() {
26+
}
2527

2628
getConfig(): Object {
2729
return this.config;

‎src/environments/environment.prod.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export const environment = {
22
production: true,
33
hmr: false,
4+
backend: true,
45
};

‎src/environments/environment.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
export const environment = {
66
production: false,
77
hmr: false,
8+
backend: true
89
};
910

1011
/*

‎src/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<title>Angular-Material-Admin-Full</title>
5+
<title>AngularMaterialAdmin</title>
66
<base href="./" />
77
<meta name="referrer" content="no-referrer-when-downgrade" />
88
<meta
99
name="description"
10-
content="Angular-Material-Admin-Full was created by Flatlogic generator."
10+
content="AngularMaterial Admin"
1111
/>
1212
<meta
1313
name="keywords"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /