Skip to content

Commit 32c10b5

Browse files
authored
Merge pull request creativetimofficial#30 from cristim67/master
Deploy on Genezio
2 parents 9102e99 + 2e6d8de commit 32c10b5

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Paper Dashboard Angular is a Bootstrap Admin Template which combines soft colors
1616
* [Versions](#versions)
1717
* [Demo](#demo)
1818
* [Quick Start](#quick-start)
19+
* [Deploy](#deploy)
1920
* [Documentation](#documentation)
2021
* [File Structure](#file-structure)
2122
* [Browser Support](#browser-support)
@@ -50,6 +51,12 @@ Quick start options:
5051

5152
- [Download from Creative Tim](https://www.creative-tim.com/product/paper-dashboard-angular).
5253

54+
## Deploy
55+
56+
:rocket: You can deploy your own version of the template to Genezio with one click:
57+
58+
[![Deploy to Genezio](https://raw.githubusercontent.com/Genez-io/graphics/main/svg/deploy-button.svg)](https://app.genez.io/start/deploy?repository=https://github.com/creativetimofficial/paper-dashboard-angular&utm_source=github&utm_medium=referral&utm_campaign=github-creativetim&utm_term=deploy-project&utm_content=button-head)
59+
5360
## Terminal Commands
5461

5562
1. Install NodeJs from [NodeJs Official Page](https://nodejs.org/en).

genezio.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: paper-dashboard-angular
2+
region: us-east-1
3+
frontend:
4+
# Specifies the path of your code.
5+
path: .
6+
# Specifies the folder where the build is located.
7+
# This is the folder that will be deployed.
8+
publish: dist
9+
# Scripts will run in the specified `path` folder.
10+
scripts:
11+
# The command to build your frontend project. This is custom to your project.
12+
# It must to populate the specified `publish` folder with a `index.html` file.
13+
deploy:
14+
- npm install --legacy-peer-deps
15+
- npm run build
16+
yamlVersion: 2

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"ng": "ng",
77
"start": "ng serve -o",
8-
"build": "ng build",
8+
"build": "cross-env CI=false ng build",
99
"test": "ng test",
1010
"lint": "ng lint",
1111
"e2e": "ng e2e",
@@ -62,6 +62,7 @@
6262
"karma-jasmine-html-reporter": "~2.0.0",
6363
"protractor": "7.0.0",
6464
"ts-node": "~10.9.1",
65-
"typescript": "~4.7.2"
65+
"typescript": "~4.7.2",
66+
"cross-env": "^7.0.3"
6667
}
6768
}

0 commit comments

Comments
 (0)