Let's begin by describing Heroku.Heroku is a cloud application platform a new way of building and deploying web applications,(www.heroku.com). This guide provides the steps required for creating a Heroku account, instaling Heroku Toolbelt, configuration and last deployment in the Heroku environment.
...
- 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.
- Procfile creation details go to: https://devcenter.heroku.com/articles/procfile
- As soon as all the required files are in the folder enter the command so as to deploy your code in Heroku:
$ 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:
Database connection
...
$ heroku open --app <your heroku app name>
Database creation
You can go to your Heroku dashboard (https://dashboard.heroku.com/apps), choose your dyno and then go to Add-ons and add Heroku Postgress database, or again by giving the command in the command line:
$ heroku addons:create heroku-postgresql --app <your heroku app name>
Web application installation
...
In the file <tomcat-install>/webapps/termweb/WEB-INF/termweb.properties.sample
you will find settings that may have to be adjusted according to your environment. Rename this file to termweb.properties
and edit the values for termweb.home
, base.url
and work.dir
values.
Please note
Prior to TermWeb v3.15, all changes to termweb.properties
requires a restart of TermWeb webapp or Tomcat to take effect.
...
Configuration for logging is configured in <tomcat>/webapps/termweb/WEB-INF/log4j.properties
. You may need to change the path to the log file (log4j.appender.logfile.file
) to make TermWeb write its log file in desired location.See http://logging.apache.org/log4j for more information about logging configuration options.
Set Environment Variable
Set the TERMWEB_HOME environment variable according to the instructions in Setting TermWeb Home Directory and copy termweb.properties
and log4j.properties
to the directory specified by the variable.
Installation complete
...
Open your browser and enter http://localhost:8080/termweb. TermWeb now asks for a license. Enter the license that you have received from Interverbum Technology.
...