From 23fe10ded1581634bd82f79fb7a6fdbd92f0211a Mon Sep 17 00:00:00 2001 From: Levi Olson Date: Mon, 30 Apr 2018 14:39:10 -0500 Subject: [PATCH] updating port --- .gitlab-ci.yml | 11 ++++++----- app.js | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 86c7f33..c82055f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,21 +7,22 @@ cache: paths: - node_modules/ -stages: - - test - - deploy +before_script: + - apt-get update -qq && apt-get install -y -qq sshpass test_coverage: - stage: test script: - npm install - npm install --global mocha nyc - npm run coverage deploy_prod: - stage: deploy script: - echo "Deploying to Production" + - npm install + - sshpass -V + - export SSHPASS=$SSH_PASS + - sshpass -e ssh root@45.55.44.195 environment: name: production url: https://leviolson.com diff --git a/app.js b/app.js index 1397829..8e53fa7 100644 --- a/app.js +++ b/app.js @@ -79,7 +79,7 @@ app.get('/posts/:post', (req, res) => { return res.render('pages/post', postData) }) -const port = 5000 +const port = 3000 app.listen(port, () => console.log('Example app listening on port ' + port + '!')) module.exports = app \ No newline at end of file