Coder Social home page Coder Social logo

tutorial-deploy-spring-boot-heroku's Introduction

Deploying a Spring Boot app on Heroku

Heroku is a Plataform as a Service – (PaaS) that enables developers to build, run and manage applications entirely in the cloud.

In this post, following easy steps, you’ll be able to deploy your App in few minutes. (For this tutorial, I used a simple rest API.) You can do all the steps using comand line, but it’s nice to have a perspective on how the plataform works.

Part I – Create an app on Heroku

Go to the dashboard: https://dashboard.heroku.com/apps. New -> Create new app

Create new app

Choose your name for the app and then click: Create app. You’ll see something like this:

Dashboard

Part II – Download and install Heroku CLI

With Heroku CLI you can manage your applications using command line. You can download it here: Heroku Dev Center

After installation, enter the following command to login to your Heroku account:

heroku login You’ll be asked to enter your credentials: email and password

heroku: Enter your login credentials
Email:
Password:
Perfect! Now you’re logged in!

Part III – Deploy your application

Execute the following instruction from the root folder from your project:

> git init
> heroku git:remote -a YOUR_APP_NAME
> git add .
> git commit -m "First commit"
> git push heroku master

Success! After few seconds, you’ll be able to access the link of your application: https://YOUR_APP_NAME.herokuapp.com

In my case, app running here :)

tutorial-deploy-spring-boot-heroku's People

Contributors

danielevilela avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.