Scalingo - GradedJestRisk/cicd-training GitHub Wiki

Table of Contents

Hello, Scalingo

Create Github repository

Create HAPI hello world

Read port from environment variables

Add Procfile

web: exec node server.js

Add .buildpacks

https://github.com/Scalingo/nodejs-buildpack

Create application in Scalingo

Link to GitHub repository

Deploy

Call server curl https://APPLICATION_NAME.osc-fr1.scalingo.io/

Check logs

Enable auto-deploy

Add version on route

Start a watcher watch -n 0.1 curl https://APPLICATION_NAME.osc-fr1.scalingo.io/

Push and chech you get no error while version is deployed

Buildpack

Priority:

  • BUILDPACK_URL environment variable
  • .buildpacks file
  • autodctection
Sample:

NodeJS

Node version used comes from package.json, engine section

Doc

mono-repo

Use PROJECT_DIR environment variable to deploy a subdirectory PROJECT_DIR=api

⚠️ **GitHub.com Fallback** ⚠️