Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8c1e7eff
authored
2018-03-10 21:54:37 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
37c87208
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
.gitignore
.webhook.php
.gitignore
0 → 100644
View file @
8c1e7ef
.idea
\ No newline at end of file
.webhook.php
0 → 100644
View file @
8c1e7ef
<?php
$res
=
system
(
'cd /var/www/html/page/ 2>&1; sudo git pull 2>&1'
,
$output
);
var_dump
(
$output
);
//file_put_contents(".webhook.log",$res, FILE_APPEND);
file_put_contents
(
__FILE__
.
'.log'
,
date
(
'Y-m-d H:i:s'
,
time
())
.
$res
.
PHP_EOL
,
FILE_APPEND
);
header
(
"Content-type: text/html; charset=utf-8"
);
echo
'<br/>看到 Already up-to-date 说明已经更新成功了!'
;
?>
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment