stage1-ag1

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

About

Repository: https://github.com/mdecourse/cmstemplate

Github Pages: https://mde.tw/cmstemplate

利用 cmstemplate 建立以 CMSiMDE 作為子模組的動態與靜態網站方法為:

  1. 登入 Github 帳號
  2. 將瀏覽器指向 https://github.com/mdecourse/cmstemplate
  3. 利用 Use this template 按鈕建立倉儲

clone 帶有 CMSiMDE 的指令:

git clone --recurse-submodules URL

上述 URL 即為希望將倉儲資料取下進行改版的 Github 倉儲網路統一資源位置, 也就是 Github 倉儲網址.

每一個以 cmstemplate 為 template 的倉儲, 其根目錄都帶有:

  1. init.py - 其中的 site_title, ip 與 port 可以讓使用者自行修改, site_title 是網站標題, ip 為動態網站啟動時所使用的網路位址, 可設為內部或外部 IPv4 (IPv6), port 則是動態網站啟動時所佔用的埠號.
  2. http-server.py - 執行後會使用內建的 localhost 與 port 8444 伺服 content 子目錄中的 CMSiMDE 靜態網頁.
  3. cms.bat - 讓使用者執行動態網站用的批次檔案.
  4. acp.bat - 若使用者已經將倉儲設為 ssh 連線, 且提供遠端與近端的認證模式, 則可以在執行此批次指令之後加上提交字串, 即可執行 git add ., git commit -m "提交訊息", 以及 git push 等三個指令.

Next >> CMSiMDE

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