All Projects → Abdallah-Abdelazim → yt-heroku-demo

Abdallah-Abdelazim / yt-heroku-demo

Licence: other
Code and instructions used in my YouTube video on how to deploy Spring Boot applications on Heroku

Programming Languages

java
68154 projects - #9 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to yt-heroku-demo

img ai app boilerplate
An image classification app boilerplate to serve your deep learning models asap!
Stars: ✭ 27 (+28.57%)
Mutual labels:  heroku, heroku-deployment
heroku-flask-template
A simple, fast and easy-to-deploy Heroku ready flask web app template written in Python.
Stars: ✭ 26 (+23.81%)
Mutual labels:  heroku, heroku-deployment
Discord-Study-Bot
Discord-Study-Bot is a Study-Time-based leaderboard system in discord servers. This features an Overall leaderboard and leaderboards based on a Daily, Weekly, and Monthly basis.
Stars: ✭ 20 (-4.76%)
Mutual labels:  heroku, heroku-deployment
PDF-Bot
A bot for PDF for doing Many Things....
Stars: ✭ 38 (+80.95%)
Mutual labels:  heroku, heroku-deployment
django-s3file
A lightweight file upload input for Django and Amazon S3
Stars: ✭ 66 (+214.29%)
Mutual labels:  heroku, heroku-deployment
IPL-ML-2018
Predicting IPL match results. https://kuharan.github.io/IPL-ML-2018/
Stars: ✭ 14 (-33.33%)
Mutual labels:  heroku, heroku-deployment
WhiteDevil
🌀Quick Response Whatsapp Bot🌀
Stars: ✭ 45 (+114.29%)
Mutual labels:  heroku, heroku-deployment
LocalSupport
A directory of local support services and volunteer opportunities
Stars: ✭ 60 (+185.71%)
Mutual labels:  heroku, heroku-deployment
tgmusicbot
Telegram bot for downloading audio from YouTube, SoundCloud & MixCloud.
Stars: ✭ 66 (+214.29%)
Mutual labels:  heroku, heroku-deployment
parsesig
A Telegram bot that forwards messages from one private/public channel to another after formatting
Stars: ✭ 40 (+90.48%)
Mutual labels:  heroku, heroku-deployment
TorrentLeechBot
A powerful telegram mirror bot..
Stars: ✭ 94 (+347.62%)
Mutual labels:  heroku-deployment
python-telegram-bot-heroku-example
Repository for Medium article about creating a Telegram bot in Python and deploying it on Heroku
Stars: ✭ 13 (-38.1%)
Mutual labels:  heroku-deployment
haikunatorphp
Generate Heroku-like random names to use in your php applications.
Stars: ✭ 99 (+371.43%)
Mutual labels:  heroku
laravel5-heroku
Laravel 5 with best practices for deployment on Heroku - created by
Stars: ✭ 18 (-14.29%)
Mutual labels:  heroku
wabot
akmallxx.github.io/wabot/
Stars: ✭ 17 (-19.05%)
Mutual labels:  heroku-deployment
heroku-integrated-firefox-geckodriver
Buildpack enables your client code to access Firefox along with Geckodriver in a Heroku slug.
Stars: ✭ 40 (+90.48%)
Mutual labels:  heroku
food-order-app
Simple Food Ordering Website (NodeJS, ExpressJS, MongoDB, Bootstrap) with auto deployment
Stars: ✭ 43 (+104.76%)
Mutual labels:  heroku-deployment
TradeByte
💸 TradeByte - Stocks Trading Simulation WebApp
Stars: ✭ 30 (+42.86%)
Mutual labels:  heroku-deployment
movie-app
🌈 TMDB + Laravel + LiveWire + AlpineJS + ViewModels + Components = ❤️ Movies App 🔥
Stars: ✭ 43 (+104.76%)
Mutual labels:  heroku-deployment
htui
Heroku Terminal User Interface
Stars: ✭ 109 (+419.05%)
Mutual labels:  heroku

Deploy Spring Boot applications on Heroku

  1. Download Heroku CLI: https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku
  2. Commands (without the preceding $ sign):
    $ heroku login
    $ git init
    $ git add .
    $ git commit -m "Initial commit"
    $ heroku create <app-name>
    $ git push heroku master
    $ heroku open

Now the website should work if you do not have any databases in it.


Enable MySQL Database:

  1. Add Postgres database addon with this command: $ heroku addons:create heroku-postgresql
  2. Add this dependency in the maven pom file (used for Postgres database addon that will enable our database to work):
<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>9.4-1201-jdbc4</version>
</dependency>
  1. Then edit the connection attributes in application.properties file to contain:
spring.datasource.url=${JDBC_DATABASE_URL}
spring.datasource.username=${JDBC_DATABASE_USERNAME}
spring.datasource.password=${JDBC_DATABASE_PASSWORD}
spring.jpa.show-sql=false
spring.jpa.generate-ddl=true
spring.jpa.hibernate.ddl-auto=create

Important note:
It's important that at first time you leave this last line and set it create so that your database gets created. After that change it to update and commit and push once more. (i.e. $ git add . , $ git commit -m "Edit application.properties" & $ git push heroku master).


This tutorial is based on the following two articles (and others):

https://devcenter.heroku.com/articles/deploying-spring-boot-apps-to-heroku
https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].