Website Summary Files Commits Branches @commit @diff @stats
path: root / deploy.php
blob: 07dba625976e9db1b60cc7cd2b4e31212b21d28a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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 ');

echo exec( 'git pull origin master' );

// 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>';