小编Man*_*dFR的帖子

GitLab CI 卡在正在运行的 NodeJS 服务器上

我正在尝试使用 GitLab CI 在服务器上构建、测试和部署 Express 应用程序(运行器与 shell 执行器一起运行)。但是,test:asyncdeploy_staging作业不会终止。但是当检查 GitLab 内的终端时,Express 服务器确实启动了。是什么赋予了 ?

stages:
  - build
  - test
  - deploy

### Jobs ###

build:
  stage: build
  script:
    - npm install -q
    - npm run build
    - knex migrate:latest
    - knex seed:run
  artifacts:
    paths:
      - build/
      - node_modules/
  tags:
    - database
    - build

test:lint:
  stage: test
  script:
    - npm run lint
  tags:
    - lint

# Run the Express server
test:async:
  stage: test
  script:
   - npm start &
   - …
Run Code Online (Sandbox Code Playgroud)

node.js gitlab gitlab-ci

4
推荐指数
1
解决办法
4829
查看次数

标签 统计

gitlab ×1

gitlab-ci ×1

node.js ×1