Steps to create and deploy on heroku
- Download this source code
git clone https://github.com/ddovnar/herokujavaweb.git
- Open folder
herokujavaweb
cd herokujavaweb
- Create new heroku app
heroku create
- Create database
To show installed heroku addons on app:
heroku addons
To add postgre database, goto heroku on web browser and add manualy postgresql database addons. Then to check if it's created success, use command.
To show database connection jdbc-url:
heroku config
Setup database connection in the .etc-file
- Push to heroku server
git push heroku master
- Run application