Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create a folder for example termweb-heroku in your local drive.
  2. Go to the command line and navigate to the created folder from the previous step
  3. When you are in the targeted folder type in the command line

    Code Block
    languagetext
    $ heroku create

    You have now created a Dyno, your virtual environment ready for deploying your application. A random name will be assigned by Heroku, for example obscure-peak-95997

Deploying the

...

war file to Heroku

  1. In the folder you have created for your app in this case termweb-heroku you must have the following files: 1. .WAR file 2.Procfile.
  2. Procfile creation details go to: https://devcenter.heroku.com/articles/procfile
  3. As soon as all the required files are in the folder enter the command so as to deploy your code in Heroku:

    Code Block
    languagetext
    $ heroku deploy:war --war <your war file> --app <your heroku app name> 
  4. After the deployment you can now open your application in the browser by typing:

    Code Block
    languagetext
    $ heroku open --app <your heroku app name>

...