Skip to content
This repository has been archived by the owner on Aug 17, 2021. It is now read-only.

satrapu/iquest-keyboards-and-mice-brasov-2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iQuest Keyboards & Mice - Brașov - 2016

Table of Contents

This repo contains the source code of a JEE 7 web application used during the "Deploying JEE to HEROKU" session at the "Keyboards & Mice" iQuest public event, which took place in Brașov on October 12th, 2016.
The web application is composed of a servlet which reads some rows from a database via JPA, a simplified setup meant to present one approach to performing deployments on Heroku cloud application platform.

  • drone.io: Build Status

http://iq-kam-brasov-2016.herokuapp.com/demo/

  • Run Heroku application on a Windows machine:
heroku local -f Procfile.windows -e .env -p 6789
  • Display all environment variables defined on the Heroku node:
heroku run printenv --app iq-kam-brasov-2016
  • Display all config vars defined inside the Heroku application:
heroku config --app iq-kam-brasov-2016
  • Display the details of the Heroku node OS:
heroku run 'cat /etc/*-release' --app iq-kam-brasov-2016
  • Display the last 250 logged messages and keep monitoring the log:
heroku logs -t -n 250 --app iq-kam-brasov-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 iq-kam-brasov-2016