Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Script replace default itself
Browse files Browse the repository at this point in the history
  • Loading branch information
dylangallin committed Feb 16, 2018
1 parent 5a34b6a commit c7c8212
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions deployNewVersion.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?php
if(!empty($_POST)) {
$branch = $_POST['branch'];
if($branch == "") {
$branch = "master";
}
$output = shell_exec(dirname(__DIR__) . '/deploy.sh --release "'.$branch.'" 2>&1');
$error = $output;
$message = "New version deployed. (branch : $branch)";
$message = "New version deployed.";
}
?>
<!DOCTYPE html>
Expand Down
5 changes: 1 addition & 4 deletions updatePanel.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
<?php
if(!empty($_POST)) {
$branch = $_POST['branch'];
if($branch == "") {
$branch = "master";
}
$output = shell_exec(dirname(__DIR__) . '/deploy.sh --panel "'.$branch.'" 2>&1');
$error = $output;
$message = "New version of admin panel deployed. (branch : $branch)";
$message = "New version of admin panel deployed.";
}
?>
<!DOCTYPE html>
Expand Down

0 comments on commit c7c8212

Please sign in to comment.