I have setup gitlab on my server. I have a successful build of my project using gitlab_ci.
How can I test the result of my build in the browser/How to use gitlab to test and deploy my project?
如果我理解正确,您正在使用 GitLab + GitLab CI 部署网站。
如果是这种情况,您必须使用 GitLab CI 为您进行部署。
部署是一个非常广泛的主题,有很多方法,并且没有太多关于 gitlab 的具体说明:如果你想自动部署,只需在 GitLab CI 上运行测试套件,然后在测试通过时运行任何部署命令。
一种可能的方法是使用 Git 进行部署,如下所述:使用 gitlab 自动部署
对于静态网站,一个很好的可能性是: http: //feedback.gitlab.com/forums/176466-general/suggestions/5599145-preview-render-static-html-pages-pushed-to-repos如果它曾经被实施.
In short: first learn how to deploy websites in without GitLab in a way that works for you, then just add the deployment commands to gitlab CI.