From 442b2a30c4af5f2c65ea5034b74c76e4a7bd0786 Mon Sep 17 00:00:00 2001 From: jonaslarsson <jonasbl> Date: Mon, 13 Apr 2020 13:13:01 +0200 Subject: [PATCH] Changing port back to 3000. --- .gitlab-ci.yml | 26 ++++++++++++++++++++++++++ public/index.html | 2 +- src/server.js | 2 +- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 30fb619..a472d5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,30 @@ image: node:latest + +stages: + - build # Jobs placed in build-stage will run first + - test # Jobs placed in test-stage will run after build-jobs + - deploy # Jobs placed in build-stage will run last after test-jobs + +install: + stage: build + script: + - npm install + # Keep node_modules-folder for the following stages: + artifacts: + paths: + - node_modules + +test: + stage: test # Job test will run in parallel with the job flow + script: + - npm test + +flow: + stage: test # Job flow will run in parallel with the job test + script: + - npm install --global flow-bin + - flow check + deploy: stage: deploy script: diff --git a/public/index.html b/public/index.html index 4260fc3..668f585 100644 --- a/public/index.html +++ b/public/index.html @@ -4,6 +4,6 @@ <meta charset="UTF-8" /> </head> <body> - Running on port 2000. + Running back on port 3000. </body> </html> diff --git a/src/server.js b/src/server.js index 429d4f3..b73f484 100644 --- a/src/server.js +++ b/src/server.js @@ -9,7 +9,7 @@ app.use(express.static(path.join(__dirname, '../public'))); // The listen promise can be used to wait for the web server to start (for instance in your tests) export let appListen = new Promise<void>((resolve, reject) => { - app.listen(2000, (error: ?Error) => { + app.listen(3000, (error: ?Error) => { if (error) return reject(error.message); console.log('Express server started'); -- GitLab