Skip to content

Commit a436b4e

Browse files
committed
deploy: now.sh
1 parent cb70be7 commit a436b4e

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A dead simple but powerful vue admin with Vue CLI 3 and ElementUI.
88

99
## Docs
1010

11-
[Docs](https://codetrial.github.io/element-admin) | [Live Demo](https://element-admin.felixpy.com)
11+
[Live Demo](https://element-admin.now.sh) | [Docs](https://codetrial.github.io/element-admin)
1212

1313
## Screen Capture
1414

now.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "element-admin",
3+
"version": 2,
4+
"alias": "element-admin",
5+
"builds": [{ "src": "**", "use": "@now/static" }],
6+
"routes": [{ "src": "/.*", "dest": "/index.html" }]
7+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"serve": "vue-cli-service serve",
77
"build": "vue-cli-service build",
88
"lint": "vue-cli-service lint",
9-
"test:unit": "vue-cli-service test:unit"
9+
"test:unit": "vue-cli-service test:unit",
10+
"deploy": "npm run build && now ./dist -A ../now.json && now alias"
1011
},
1112
"dependencies": {
1213
"element-ui": "^2.4.11",

0 commit comments

Comments
 (0)