2017-04-21 82 views
2

我試圖建立Gitlab頁,到現在爲止我完成上傳時,我的靜態網站文件[Gitlab]我在哪裏可以找到我的私人Gitlab實例上託管的Gitlab Pages?

Uploading artifacts... 
coverage/lcov-report: found 77 matching files  
Uploading artifacts to coordinator... ok   id=1038 responseStatus=201 Created token=QXJjgkf2 

但我不知道在哪裏我的網頁託管。

我瞥了一眼this documentation,但對我來說還是模糊的。

  • 我有一個私人的Gitlab實例。
  • 我的Gitlab條目在http://abc.def.com(我爲主機IP111.111.111.111配置了一個類型A DNS,一個指向localhost:9000的反向代理)。
  • 我的項目project1屬於我的團隊team1
  • 我也配置了DNS http://team1.abc.def.com到111.111.111.111,並且在我的服務器上有一個nginx反向代理,它位於:http://team1.abc.def.com - > localhost:9000。

我想我應該可以在http://team1.abc.def.com/project1上看到我的靜態頁面,但沒有任何內容。我的頁面在哪裏託管?

回答

0

爲了讓gitlab工作,你需要把你的網站文件(html,CSS等)放在一個名爲public的文件夾中。

更新您的.gitlab-ci.yml文件,像下面

pages: 
    script: 
    - mv coverage/lcov-report public 
    artifacts: 
    paths: 
     - public 

還有,記得來命名問題工作pages

+0

一旦你做到了這一點,其中究竟是你的網頁託管? –

+1

@ Pierre.Sassoulas您是否從管理角度設置了網頁? https://docs.gitlab.com/ce/administration/pages/index.html – Jawad

0

你需要問你的系統管理員在這通配符域頁供應: https://docs.gitlab.com/ce/user/project/pages/getting_started_part_one.html#gitlab-pages-domain

然後你就會知道你的網站被部署到了哪裏。

示例:GitLab.com,所有頁面域*.gitlab.io下提供服務,因此,您的網站將被部署到username.gitlab.io(用戶/組網站)或username.gitlab.io/project-name(項目網站)。

您需要找出GitLab實例的通配符域,並用它替換gitlab.io

參見:頁數限制:https://docs.gitlab.com/ce/user/project/pages/introduction.html#limitations