( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0006417096{main}( ).../index.php:0
20.07294704168Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.323414244000Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.323714243944Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.323714244320Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.323714244320Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.323914244416Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.324314284336require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.328514582024GKTemplate->__construct( ).../component.php:31
100.334414751400GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.335114796256require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0006417096{main}( ).../index.php:0
20.07294704168Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.323414244000Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.323714243944Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.323714244320Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.323714244320Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.323914244416Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.324314284336require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.328514582024GKTemplate->__construct( ).../component.php:31
100.336814924200GKTemplateMenu->getMenuType( ).../gk.framework.php:85
virtualmin domain subversion svn hook post-commit public_html
Logo
Print this page

virtualmin domain subversion svn hook post-commit public_html

1.

services--Subversion Repositories--creat a svn name as sitesvn

2.

添加 服务器端 只读 svn update 用户

Edit Users -- Add a website FTP access user --

Username -- This email address is being protected from spambots. You need JavaScript enabled to view it.

Password -- 123456

Other user permissions

Subversion login enabled?

Read-only access to repositories

Allowed repos

sitesvn


添加 远程可写 用户

Edit Users -- Add a website FTP access user --

Username -- This email address is being protected from spambots. You need JavaScript enabled to view it.

Password -- 123456

Other user permissions

Subversion login enabled?

Read/write access to repositories

Allowed repos

sitesvn


3

enable ssl for site

Edit Virtual Server -- Enabled features -- SSL website enabled?


4

use ssh

su as root

清空 文件夹

cd /home/yourdomain/public_html

rm -rf *


cd /home/mydomain/svn/sitesvn/hooks

cp post-commit.tmpl post-commit

vi post-commit


#!/bin/sh
svn update /home/yourdomain/public_html --username=server --password=123456 --non-interactive >> /home/yourdomain/logs/subversion_log


cd /home/yourdomain/logs


touch subversion_log


切换用户为 mydomain 运行 svn checkout

su domainuser


svn co https://yourdomain/svn/sitesvn/ /home/yourdomain/public_html --username=server --password=123456

p

yes

yes


不是必须 容易出错

chown apache:yourdomain /home/yourdomain/svn/sitesvn/hooks/post-commit
chown apache:yourdomain /home/yourdomain/logs/subversion_log
chown -R apache:yourdomain /home/yourdomain/public_html/.svn

 

chmod 770 /home/yourdomain/svn/sitesvn/hooks/post-commit
chmod 770 /home/yourdomain/logs/subversion_log
chmod 770 /home/yourdomain/public_html/.svn


Last modified onSunday, 14 October 2012 04:07

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0007415816{main}( ).../index.php:0
20.08974721072Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08974721072Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.300712449440Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.301412473896Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.302112529224Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.302412558048require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.310912993456K2ControllerItem->execute( ).../k2.php:64
90.310912993456K2ControllerItem->display( ).../BaseController.php:710
100.324513718656K2ControllerItem->display( ).../item.php:78
110.324513718656K2ControllerItem->display( ).../controller.php:19
120.330714115024Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.335014135392K2ViewItem->display( ).../ViewController.php:102
140.470917141112K2ViewItem->display( ).../view.html.php:742
150.470917141112K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.475017321312include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Webmin
  • Read 2043 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0007415816{main}( ).../index.php:0
20.08974721072Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08974721072Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.300712449440Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.301412473896Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.302112529224Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.302412558048require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.310912993456K2ControllerItem->execute( ).../k2.php:64
90.310912993456K2ControllerItem->display( ).../BaseController.php:710
100.324513718656K2ControllerItem->display( ).../item.php:78
110.324513718656K2ControllerItem->display( ).../controller.php:19
120.330714115024Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.335014135392K2ViewItem->display( ).../ViewController.php:102
140.470917141112K2ViewItem->display( ).../view.html.php:742
150.470917141112K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.475017321312include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.