diff options
| Commit | 4751e021fd0f8bd6cb71945af8f4e9cf41acbed3 (patch) | |
|---|---|---|
| Author | 2020-07-08 22:24:05 +0300 | |
| Committer | 2020-07-08 22:24:05 +0300 | |
| Files | 6dac2882e3b359450c7b36dec8c523c82b09c91f /deploy.php | |
| tues-interns-2020-feature/tos-pp.tar tues-interns-2020-feature/tos-pp.tar.gz tues-interns-2020-feature/tos-pp.zip | ||
| Parent | a2a785a17d4cdeee856685a6e0792d272c9338ef (diff) | |
| Parent | d806454c3a25475c0e365e17a7d3bc7cad633df8 (diff) | |
[Update] Synced with master feature/tos-pp
1 files changed, 17 insertions, 0 deletions
| -rw-r--r-- | deploy.php | 17 |
diff --git a/deploy.php b/deploy.php new file mode 100644 index 0000000..e4c2853 --- /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>';
\ No newline at end of file |
