Chiaming Yen's Cyber Universe

  • Home
    • SMap
    • reveal
    • blog
  • About
    • KMOL
    • MDE
    • ToDo
    • Google
      • Blogger
      • Youtube
  • Python
  • Portable
    • Lua 解譯
    • Wink
      • Add Wink
  • CMSiMDE
    • 建立網頁
    • 基本操作
      • 客製化
      • 編輯網頁內容
      • 上傳與引用檔案
      • 上傳與引用圖片
      • 嵌入程式碼
      • 嵌入影片檔
      • 檢視 STL
    • 置入 disqus
    • Gitlab 同步
    • Heroku 部署
    • Fossil SCM
    • 注意事項
      • 標題選擇
      • 靜態網頁 404
      • 動態網站錯誤
    • 延伸開發
    • 已知問題
      • IPv6
      • 上傳資料引用
      • MathJax
      • html 分頁
      • 靜態搜尋
      • template
      • 重複標題頁面
    • ajax
    • black
    • summernote
Youtube << Previous Next >> Portable

Python

至於 PythonNotesForProfessionals.pdf 則是一份由電腦系統自動整理出來的 Python 相關資料.

利用 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 等三個指令.

Youtube << Previous Next >> Portable

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