40923213-2021 Fall 電腦輔助設計實習 作業網站

  • Home
    • Site Map
    • reveal
    • blog
  • About
  • Task
    • hwpages
  • run
    • HW2
  • CMSiMDE
    • 建立網頁
    • 基本操作
      • 客製化
      • 編輯網頁內容
      • 上傳與引用檔案
      • 上傳與引用圖片
      • 嵌入程式碼
      • 嵌入影片檔
      • 檢視 STL
    • 置入 disqus
    • Gitlab 同步
    • Heroku 部署
    • Fossil SCM
  • 注意事項
    • 標題選擇
    • 靜態網頁 404
    • 動態網站錯誤
  • 延伸開發
    • 已知問題
      • IPv6
      • 上傳資料引用
      • MathJax
      • html 分頁
      • 靜態搜尋
      • template
    • ajax
    • black
    • summernote
置入 disqus << Previous Next >> Heroku 部署

Gitlab 同步

利用 git remote add gitlab https://gitlab.com/user/repository.git 可以在近端倉儲中的 .git/config 中新增一個名稱為 gitlab, 且與 https://gitlab.com/user/repository.git 倉儲對應的設定. 使用者可以將此倉儲改版內容以 git push gitlab 推向 Gitlab.

至於 Gitlab Pages 額外需要下列 .yml 檔案進行轉換設定:

.gitlab-ci.yml

pages:
  stage: deploy
  script:
  - mkdir .public
  - cp -r * .public
  - mv .public public
  artifacts:
    paths:
    - public
  only:
  - master
variables:
  GIT_SUBMODULE_STRATEGY: recursive


置入 disqus << Previous Next >> Heroku 部署

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