Dev ops

Create Spring App and Deploy in 8 Steps

Create Spring App and Deploy in 8 Steps

To create a brand new spring boot app and deploy to a web server in 8 steps you can use the following:

Prerequisites

  • Install Heroku CLI
  • Install Spring CLI

Commands

heroku login
spring init --dependencies=web demo
cd demo
git init
git add .
git commit -m "new spring app"
heroku create
git push heroku master

Install Heroku CLI and Setup  Heroku Autocomplete

Install Heroku CLI and Setup Heroku Autocomplete

On a Mac command line

brew tap heroku/brew && brew install heroku

Enable heroku autocomplete

heroku autocomplete
printf "$(heroku autocomplete:script bash)" >> ~/.bashrc; source ~/.bashrc

To use autocomplete type: Heroku and Tab,Tab