mirror of
https://gh.wpcy.net/https://github.com/jonbp/wp-cli-sync.git
synced 2026-04-24 15:08:58 +08:00
21 lines
No EOL
512 B
PHP
21 lines
No EOL
512 B
PHP
<?php
|
|
|
|
// Fail Count Var
|
|
$fail_count = 0;
|
|
|
|
// Sync vars
|
|
$ssh_hostname = $_ENV['LIVE_SSH_HOSTNAME'];
|
|
$ssh_username = $_ENV['LIVE_SSH_USERNAME'];
|
|
$rem_proj_loc = $_ENV['REMOTE_PROJECT_LOCATION'];
|
|
$upload_dir = $_ENV['UPLOAD_DIR'];
|
|
|
|
// Plugin Vars
|
|
$dev_activated_plugins = $_ENV['DEV_ACTIVATED_PLUGINS'];
|
|
$dev_deactivated_plugins = $_ENV['DEV_DEACTIVATED_PLUGINS'];
|
|
|
|
// Move to project root
|
|
chdir(ABSPATH.'../../');
|
|
|
|
// Activate Maintenance Mode
|
|
$command = 'vendor/bin/wp maintenance-mode activate';
|
|
exec($command); |