Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OKR
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hanfeng zhang
OKR
Commits
d9fd6c92
Commit
d9fd6c92
authored
Sep 03, 2021
by
hanfeng zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
321
parent
6300bfda
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
deploy.sh
deploy.sh
+8
-0
package.json
package.json
+1
-0
base.ts
src/service/base.ts
+1
-3
tailwind.config.js
tailwind.config.js
+1
-1
No files found.
deploy.sh
0 → 100644
View file @
d9fd6c92
#!/usr/bin/env bash
tar
-czvf
kor.tar kor
scp kor.tar root@121.40.18.70:/usr/share/nginx/html/kor.tar
rm
-rf
kor.tar
ssh root@121.40.18.70
'cd /usr/share/nginx/html && rm -rf kor && tar -xzvf kor.tar && rm -rf kor.tar && /usr/sbin/nginx -s reload'
\ No newline at end of file
package.json
View file @
d9fd6c92
...
...
@@ -5,6 +5,7 @@
"scripts"
:
{
"serve"
:
"vue-cli-service serve"
,
"build"
:
"vue-cli-service build"
,
"deploy"
:
"vue-cli-service build&&bash ./deploy.sh"
,
"lint"
:
"vue-cli-service lint"
},
"dependencies"
:
{
...
...
src/service/base.ts
View file @
d9fd6c92
...
...
@@ -22,9 +22,7 @@ export default class BaseService {
return
ret
}
}
this
.
service
.
post
=
(...
res
)
=>
post
(...
res
).
then
(
ret
=>
resolveData
(
ret
.
data
)).
catch
(
err
=>
{
resolveData
(
err
.
response
.
data
)
});
this
.
service
.
interceptors
.
request
.
use
()
}
...
...
tailwind.config.js
View file @
d9fd6c92
const
colors
=
require
(
'tailwindcss/colors'
)
module
.
exports
=
{
purge
:
[],
purge
:
[
'./index.html'
,
'./src/**/*.{vue,js,ts,jsx,tsx}'
],
presets
:
[],
darkMode
:
false
,
// or 'media' or 'class'
theme
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment