更新 buildforge.conf 檔

buildforge.conf 檔位於兩個位置。如果您在安裝之後需要更新它,則必須在這兩個位置中進行更新。

如果將 Build Forge® 資料庫移至不同的主機,您可能需要編輯 buildforge.conf 檔來更新資料庫主機。編輯這個檔案另一個常見的原因是要更新資料庫密碼;其必須定期變更以符合網路安全原則。

使用下列程序來更新 buildforge.conf 檔,然後以更新後的 buildforge.conf 副本來重建 jas.war 檔。

  1. 停止 Build Forge® 引擎。
  2. Build Forge® 安裝目錄中找出 buildforge.conf 檔。
    Windows <bfinstall>
    UNIX 和 Linux <bfinstall>/Platform
  3. 使用文字編輯器來開啟檔案並修改配置設定,然後儲存檔案。
    註: 您需要有 root 使用者或「管理者」專用權,才能編輯這個檔案。
  4. 導覽至包含 jas.war 檔的目錄,例如:
    Apache Tomcat Server <bfinstall>/Apache/tomcat/webapps

    $CATALINA_HOME/webapps
  5. 使用您偏好的保存管理程式工具,開啟 jas.war 檔,然後在 /WEB-INF/eclipse/plugins/ 下找出 com.ibm.jas-xxx.jar
  6. 更新 com.ibm.jas-xxx.jar 中的 buildforge.conf 檔並儲存。
    註: 確定 jas.war 檔是設為自動更新。
  7. 在 $CATALINA_HOME/webapps 和 $CATALINA_HOME/work/Catalina/localhost 下,使用下列範例來刪除 jas 目錄:
    Windows rmdir jas /s /q
    UNIX/Linux rm -rf jas
  8. 重新啟動 Build Forge® 引擎。

    即會重新部署 jas 檔,並以更新的 buildforge.conf 檔來自動重建 jas 目錄。


意見