Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.
/ codecamp-cluj-2016 Public archive

Source code for "Creating a CI/CD pipeline for a Java EE application in the cloud" session

License

Notifications You must be signed in to change notification settings

satrapu/codecamp-cluj-2016

Repository files navigation

Codecamp - Cluj-Napoca - 2016

Table of Contents

This repo contains the source code of a JEE 7 web application used during the "Creating a CI/CD pipeline for a Java EE application in the cloud" session at Codecamp Cluj-Napoca IT event, which took place in Cluj-Napoca on November 19th, 2016.

  • snap-ci: Build Status

https://codecamp-cluj-2016.herokuapp.com/

  • Run Heroku application on a Windows machine:
heroku local -f Procfile.windows -e .env -p 6789
  • Run Heroku application on a macOS machine:
heroku local -f Procfile.mac -e .env -p 6789
  • Display all environment variables defined on the Heroku node:
heroku run printenv --app codecamp-cluj-2016
  • Display all config vars defined inside the Heroku application:
heroku config --app codecamp-cluj-2016
  • Display the details of the Heroku node OS:
heroku run 'cat /etc/*-release' --app codecamp-cluj-2016
  • Display the last 250 logged messages and keep monitoring the log:
heroku logs -t -n 250 --app codecamp-cluj-2016
  • Copy config var "DATABASE_URL", which contains the URL pointing to the Heroku managed PostgreSQL database, from Heroku application to the local .env file:
heroku config:get DATABASE_URL -s  >> .env --app codecamp-cluj-2016