類似 Github Pages 服務的功能:GitLab Pages
該項目的目的是為 Gitlab 實現類似 Github Pages 服務的功能。
Step 1) Create your deploy key pair
Create a SSH key pair for GitLab to use as deploy keys.
ssh-keygen -t rsa -C "example@email.com" -f "$(pwd)/keys/id_rsa"
They should be in pathkeys/id_rsaandkeys/id_rsa.pub.
Step 2) Configure GitLab Pages server
Clone this repo and install it's necessary dependencies:
# Already cloned repo npm install
bower install
Copy default config to custom config file.
cp default_config.js _config.js
Edit your new _config.js file for your setup.
Step 3) Start your GitLab Pages server
And start the server!
npm start
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!