.gitlab-ci.yml file
image: node:latest
services:
# This folder is cached between builds
stages:
- deploy
cache:
paths:
- node_modules/
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
- npm install
- npm install pm2 -g
- pm2 start bin/www --name mms
- ps -ef | grep mms
environment:
name: staging
url: http://staging.example.com
I have deployed a nodeJS application on the server, how can I access the endpoints of the app using this URL?