8000 debug deploy · pycoder404/blog-vue@138b669 · GitHub
[go: up one dir, main page]

Skip to content

Commit 138b669

Browse files
committed
debug deploy
1 parent db683d1 commit 138b669

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ yarn-debug.log*
99
yarn-error.log*
1010
package-lock.json
1111
tests/**/coverage/
12-
.env.production
13-
.env.prodebug
14-
.env.development
15-
.env.devdebug
12+
.env.dev
13+
.env.local
14+
.env.staging
15+
.env.pro
1616
nohup.out
1717

1818
# Editor directories and files

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const prodPlugins = []
2-
if (process.env.NODE_ENV === 'production'){
2+
if (process.env.NODE_ENV === 'pro'){
33
prodPlugins.push('transform-remove-console')
44
}
55
module.exports = {

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
6-
"serve": "vue-cli-service serve",
7-
"build": "vue-cli-service build",
6+
"serve": "vue-cli-service serve --mode dev --port 28080",
7+
"local": "vue-cli-service build --mode local",
8+
"staging": "vue-cli-service serve --mode staging --port 28080",
9+
"build": "vue-cli-service build --mode pro",
810
"report": "vue-cli-service build --report",
911
"lint": "vue-cli-service lint"
1012
},

src/views/login/components/SocialSignin.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import IconGithub from "@/components/SvgIcon/components/IconGithub";
1818
import IconWechat from "@/components/SvgIcon/components/IconWechat";
1919
20-
const GITHUBCLIENTID = process.env.VUE_APP_GITHUB_CLIENTID
20+
const GITHUB_CLIENT_ID = process.env.VUE_APP_GITHUB_CLIENT_ID
2121
export default {
2222
name: 'SocialSignin',
2323
components: {
@@ -36,7 +36,7 @@
3636
// const url = 'https://graph.qq.com/oauth2.0/authorize?response_type=code&client_id=' + client_id + '&redirect_uri=' + redirect_uri
3737
const thirdPart = window.location.search === '' ? "?thirdPart=github" : "&thirdPart=github"
3838
const redirect_uri = window.location.href + thirdPart
39-
return this.githubAuthBaseUri + GITHUBCLIENTID + "&redirect_uri=" + encodeURIComponent(redirect_uri)
39+
return this.githubAuthBaseUri + GITHUB_CLIENT_ID + "&redirect_uri=" + encodeURIComponent(redirect_uri)
4040
}
4141
}
4242
,

0 commit comments

Comments
 (0)
0