Zurmo - - 升級指南

Zurmo的升級指南: php

以前介紹了Zurmo命令行工具,可是沒有詳細介紹這個更新命令,其實這個更新版本的命令也挺重要的,全部這裏在說一下,更新到新的版本(此功能待測試)segmentfault

根據官方的方法是經過一個命令來實現的。zurmoc 命令app

USAGE
  zurmoc updgradeZurmo <username> <action> <doNotlAlterFiles> <interactive>

DESCRIPTION
  This command runs a Zurmo upgrade.

PARAMETERS
 * username: username to log in as and run the import processes. Typically 'super'.
             This user must be a super administrator.
 * action: define upgrade phase(possible options: "runPart1" or "runPart2")
 * doNotlAlterFiles: Should files be altered or not. This should be set to 1 if you
                     already updated files using Mercurial
 * interactive: interactive or not

用法
  zurmoc updgradeZurmo <username> <action> <doNotlAlterFiles> <interactive>
  zurmoc updgradeZurmo 爲必選參數,<> 內爲可選參數

描述
  此命令運行讓Zurmo升級.

參數
 * username: 用戶名登陸並運行導入過程。一般是「super」。該用戶必須是超級管理員.
 * action: 定義升級階段(可選項: "runPart1" or "runPart2")
 * doNotlAlterFiles: 文件是否應該更改?應該設置爲1若是使用Mercurial更新文件
 * interactive: 互動或不

..app/protected/commands/ 在這個目錄下執行zurmoc 命令工具

示例(可按本身的狀況寫參數)   zurmo updgradeZurmo super ....

若是對這個命令的用法仍是有疑問的,能夠去..app/protected/commands/UpgradeZurmoCommand.php這個文件裏查看具體的代碼。也能夠看回去以前的文章測試

相關文章
相關標籤/搜索