有一些教程介绍了Ruby的部署,但我找不到关于NodeJS的好文档或示例。
http://docs.gitlab.com/ce/ci/examples/test-and-deploy-python-application-to-heroku.html
http://docs.gitlab.com/ce/ci/examples/test-and-deploy-ruby-application-to-heroku.html
有谁可以分享.gitlab-ci.yml吗?
发布于 2019-05-02 19:23:45
npm init -y
npm i #install dependencies "engines": {
"node": "8.12.0", //node version
"npm": "6.4.1" //npm version
},
"scripts": {
"start": "node app.js", //heroku will using the following script to run node app
}1. select _NEW_ -> _Create new app_
2. set the _App name_ & _choose a region_
3. click on _Create app_
1. Heroki Dashborad -> Account Settings
1. Setting -> CI/CD -> Variable -> Expand
1. Specific Runners
1. Install the gitlab-runner
2. [Windows](https://docs.gitlab.com/runner/install/windows.html)
3. [Linux](https://docs.gitlab.com/runner/install/linux-manually.html)
4. [MacOS](https://docs.gitlab.com/runner/install/osx.html)
5. For setup steps [here](https://docs.gitlab.com/runner/register/index.html)
1. Shared Runners
1. just click _Disable shared Runners_ to enable the shared runner
发布于 2018-07-05 06:02:34
我找到了一篇关于Heroku持续集成的详细文章:
https://medium.com/@seulkiro/deploy-node-js-app-with-gitlab-ci-cd-214d12bfeeb5
示例..gitlab ci.yml文件:
https://stackoverflow.com/questions/38885185
复制相似问题