Skip to content

Commit e3ee494

Browse files
committed
Deploy on Genezio
1 parent 017b3c4 commit e3ee494

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Let us know what you think and what we can improve below. And good luck with dev
1515
- [Versions](#versions)
1616
- [Demo](#demo)
1717
- [Quick Start](#quick-start)
18+
- [Deploy](#deploy)
1819
- [Documentation](#documentation)
1920
- [File Structure](#file-structure)
2021
- [Browser Support](#browser-support)
@@ -68,6 +69,12 @@ Let us know what you think and what we can improve below. And good luck with dev
6869

6970
For detailed explanation on how things work, checkout the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).
7071

72+
## Deploy
73+
74+
:rocket: You can deploy your own version of the template to Genezio with one click:
75+
76+
[![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/vue-material-dashboard&utm_source=github&utm_medium=referral&utm_campaign=github-creativetim&utm_term=deploy-project&utm_content=button-head)
77+
7178
## Documentation
7279

7380
The documentation for the Vue Material Dashboard is hosted at our [website](https://demos.creative-tim.com/vue-material-dashboard/documentation).

genezio.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: vue-material-dashboard
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

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"serve": "vue-cli-service serve --open",
77
"dev": "npm run serve",
8-
"build": "vue-cli-service build",
8+
"build": "cross-env CI=false vue-cli-service build",
99
"lint": "vue-cli-service lint",
1010
"prettify": "prettier --write ."
1111
},
@@ -34,6 +34,7 @@
3434
"prettier": "2.8.8",
3535
"sass": "1.71.1",
3636
"sass-loader": "13.3.2",
37-
"vue-template-compiler": "2.7.16"
37+
"vue-template-compiler": "2.7.16",
38+
"cross-env": "^7.0.3"
3839
}
3940
}

0 commit comments

Comments
 (0)