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 a7a4f79

Browse files
author
Lionel Bijaoui
committed
Trying deployment
1 parent f502eeb commit a7a4f79

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

‎deploy.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# build
7+
npm run build
8+
9+
# navigate into the build output directory
10+
cd dist
11+
12+
# if you are deploying to a custom domain
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# if you are deploying to https://vue-generators.github.io
20+
# git push -f git@github.com:vue-generators/vue-generators.github.io.git master
21+
22+
# if you are deploying to https://vue-generators.github.io/vue-form-generator-demo
23+
git push -f git@github.com:vue-generators/vue-form-generator-demo.git master:gh-pages
24+
25+
cd -

‎package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"license": "MIT",
11+
"files": [
12+
"dist",
13+
"src"
14+
],
15+
"main": "src/examples/index.js",
1116
"dependencies": {
1217
"fakerator": "0.3.0",
1318
"fecha": "2.3.3",

‎vue.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const generateDevProjects = () => {
2020
};
2121

2222
module.exports = {
23-
baseUrl: process.env.NODE_ENV === "production" ? "/my-project/" : "/",
23+
baseUrl: process.env.NODE_ENV === "production" ? "/vue-form-generator-demo/" : "/",
2424
lintOnSave: true,
2525
runtimeCompiler: false,
2626
productionSourceMap: false,

0 commit comments

Comments
(0)

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