stage1-ag1

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • CMSiMDE
    • 基本操作
      • 編輯網頁內容
      • 上傳與引用檔案
      • 上傳與引用圖片
      • 嵌入程式碼
      • 嵌入影片檔
      • 檢視 STL
    • Gitlab 同步
    • Heroku 部署
    • Fossil SCM
  • 建立網頁
  • 注意事項
    • 標題選擇
    • 靜態網頁 404
    • 動態網站錯誤
  • 延伸開發
  • Midterm
    • W4
建立網頁 << Previous Next >> 標題選擇

注意事項

因為 https://github.com/mdecourse/cmstemplate 將 CMSiMDE 倉儲作為 submodule, 因此使用者利用 cmstemplate 作為 template 後, 必須使用 git clone --recurse-submodules 取下遠端倉儲.

例如:

若使用者的倉儲 URL 為 https://github.com/mdecourse/cmstemplate

則可以在近端利用:

git clone --recurse-submodules https://github.com/mdecourse/cmstemplate.git

將遠端倉儲資料存入 cmstemplate 目錄中.

目前的 cmstemplate 內建 cms.bat 與 acp.bat 等兩個 batch 檔案, 可以協助使用者直接在倉儲根目錄啟動 CMSiMDE 動態網頁, 以及單一指令式即可完成 git add, git commit 以及 git push, 但是前提是使用者必須設定以 ssh 方式與 Github 倉儲進行驗證.

例如:

若使用者已經將倉儲內容 clone 至近端, 且已經帶有 cmsimde 子模組的內容.

則可以在近端命令列進入 cmstemplate 倉儲目錄執行:

cms.bat

開啟動態網頁系統. 並以 https://localhost:9443 開啟.

一旦完成動態網頁的編輯, 利用 Generate Pages 可以轉為靜態網站, 且各 html 檔案將位於 content 目錄中.

若使用者希望檢查近端靜態網頁的內容, 可以利用 SciTE 開啟倉儲中的 http-server.py, 並利用瀏覽器以 https://localhost:8444 檢查靜態網頁內容.

一旦使用者要將近端倉儲的動態與靜態網頁內容推向 Github, 則必須將倉儲中 .git/config 的 url, 從 https 改為 ssh 的連線格式:

例如:

原先 .git/config origin 的 url 為 url = https://github.com/mdecourse/cmstemplate.git, 則必須改為:

url = git@github.com:mdecourse/cmstemplate.git

之後假如使用者要以 "add some files" 字串當作提交說明訊息, 則可以在命令列中的倉儲目錄執行:

acp.bat "add some files"


建立網頁 << Previous Next >> 標題選擇

Copyright © All rights reserved | This template is made with by Colorlib