Browse Source

updating port

post_vjs2
Levi Olson 6 years ago
parent
commit
23fe10ded1
2 changed files with 7 additions and 6 deletions
  1. +6
    -5
      .gitlab-ci.yml
  2. +1
    -1
      app.js

+ 6
- 5
.gitlab-ci.yml View File

@ -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

+ 1
- 1
app.js View File

@ -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

Loading…
Cancel
Save