diff --git a/angular.json b/angular.json index 126fb2c..066b70a 100644 --- a/angular.json +++ b/angular.json @@ -26,7 +26,8 @@ "assets": [ "src/favicon.ico", "src/assets", - { "glob": "**/*", "input": "./node_modules/@inst-iot/bosch-angular-ui-components/assets", "output": "./assets" } + { "glob": "**/*", "input": "./node_modules/@inst-iot/bosch-angular-ui-components/assets", "output": "./assets" }, + "src/Staticfile" ], "styles": [ "src/styles.scss" diff --git a/manifest.yml b/manifest.yml new file mode 100644 index 0000000..852c5cd --- /dev/null +++ b/manifest.yml @@ -0,0 +1,8 @@ +--- +applications: + - name: definma + path: dist/UI + buildpack: staticfile_buildpack + memory: 128M + instances: 1 + stack: cflinuxfs3 diff --git a/package.json b/package.json index d77ae2a..b188818 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "scripts": { "ng": "ng", "start": "ng serve", - "build": "ng build", + "build": "ng build --prod --aot", + "build-push": "ng build --prod --aot && cf push", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e", diff --git a/src/Staticfile b/src/Staticfile new file mode 100644 index 0000000..03b776c --- /dev/null +++ b/src/Staticfile @@ -0,0 +1,2 @@ +pushstate: enabled +force_https: true diff --git a/src/app/app.component.html b/src/app/app.component.html index 140a69a..0546de3 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1,7 +1,7 @@