Website Summary Files Commits Branches @commit @diff @stats
path: root / deploy.php
diff options
context:
space:
mode:
Commitf8cabd4ae49e055fdd491bfbddfe67c07d60cd35 (patch)
Author
 pgmatev <petargabriel.matev@gmail.com>
2020-07-10 14:06:09 +0300
Committer
 pgmatev <petargabriel.matev@gmail.com>
2020-07-10 14:06:09 +0300
Filesdd4b71e088da4c5d960e3f0cc5e7b24c442fc73a /deploy.php
tues-interns-2020-f8cabd4ae49e055fdd491bfbddfe67c07d60cd35.tar
tues-interns-2020-f8cabd4ae49e055fdd491bfbddfe67c07d60cd35.tar.gz
tues-interns-2020-f8cabd4ae49e055fdd491bfbddfe67c07d60cd35.zip
Parent79c17fdac6607c54098614aae8e5e6248b5651cb (diff)
Parentb56844313df9a6e53cd6f0bd32c69aacf33e8971 (diff)
Merge branch 'master' into feature-users-cm
1 files changed, 17 insertions, 0 deletions
-rw-r--r--deploy.php17
diff --git a/deploy.php b/deploy.php
new file mode 100644
index 0000000..49694c9
--- /dev/null
+++ b/deploy.php
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * Get the latest version of the master branch
+ */
+echo shell_exec( 'git fetch origin master; ');
+echo shell_exec( 'git checkout master; ');
+echo shell_exec( 'git pull origin master; ');
+echo shell_exec( 'wp cache flush ');
+
+// Load WordPress
+require_once( 'wp-load.php' );
+
+// Display a link to the homepage
+echo '<div>';
+echo 'You are ready to check the <a href="' . home_url( '/' ) . '">Homepage</a>';
+echo '</div>';