Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
D
dashboard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shangbj
dashboard
Commits
386b072e
Commit
386b072e
authored
Aug 06, 2018
by
shangbj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加bjgee
parent
63f64ef6
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
388 additions
and
0 deletions
+388
-0
app.js
app.js
+17
-0
yarn.lock
yarn.lock
+371
-0
No files found.
app.js
View file @
386b072e
...
@@ -47,6 +47,23 @@ app.all('/wiki/update', function(req, res){
...
@@ -47,6 +47,23 @@ app.all('/wiki/update', function(req, res){
})
})
})
})
app
.
all
(
'/bjgee/update'
,
function
(
req
,
res
){
const
WIKI_PATH
=
'/home/bjgee'
const
commands
=
[
'cd '
+
WIKI_PATH
,
'git pull'
].
join
(
'&&'
)
exec
(
commands
,
function
(
err
,
out
){
if
(
err
instanceof
Error
){
res
.
writeHead
(
500
)
res
.
end
(
'Hook error'
)
throw
err
}
res
.
status
(
200
).
end
()
})
})
app
.
post
(
'/register'
,
function
(
req
,
res
){
app
.
post
(
'/register'
,
function
(
req
,
res
){
const
site
=
req
.
body
.
site
const
site
=
req
.
body
.
site
const
machine
=
req
.
body
.
machine
const
machine
=
req
.
body
.
machine
...
...
yarn.lock
0 → 100644
View file @
386b072e
This diff is collapsed.
Click to expand it.
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