Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Tenzing
/
banners-with-skip
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
56e7766a
authored
2017-11-29 11:52:41 -0500
by
Jeff Balicki
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
done
1 parent
ba6838d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
deploy.php
deploy.php
View file @
56e7766
...
...
@@ -9,7 +9,7 @@ $BRANCH = "deploy";
if
(
$_POST
[
'payload'
]
)
{
// Only respond to POST requests from Github
echo
'paload'
;
if
(
file_exists
(
$LOCAL_REPO
)
)
{
// If there is already a repo, just run a git pull to grab the latest changes
...
...
@@ -17,12 +17,12 @@ if ( $_POST['payload'] ) {
die
(
"done "
.
mktime
());
}
else
{
// If the repo does not exist, then clone it into the parent directory
shell_exec
(
"cd
{
$LOCAL_ROOT
}
&& git clone
{
$REMOTE_REPO
}
"
);
die
(
"done "
.
mktime
());
}
}
?>
...
...
Please
register
or
sign in
to post a comment