作者 ZhengBing He

ok

... ... @@ -31,3 +31,5 @@ git clone git@47.244.231.31:hbb/globalsoV5.git demo.globalso.com
![DB](uploads/tmp/cf2.png)
**3. 解析域名指向我们创建的站点,访问站点授权**
![DB](uploads/tmp/sq1.png)
4. 完成授权后,访问自己的站点URL:`https://demo.globalso.com/admin/init.php` 完成部署
... ...
<?php
require_once( dirname(__FILE__) . '/../wp-load.php' );
global $wpdb;
$target_domain = 'demo.globalso.com'; //此处填写自己的站点域名
$wpdb->query("UPDATE `wp_posts` SET `post_content` = replace( `post_content` , 'devmark.globalso.com', '".$target_domain."')");
$wpdb->query("UPDATE `wp_options` SET `option_value` = replace( `option_value` , 'devmark.globalso.com', '".$target_domain."')");
$wpdb->query("UPDATE `wp_posts` SET `guid` = replace( `guid` , 'devmark.globalso.com', '".$target_domain."')");
echo '部署成功';exit;
... ...