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.
...
$ heroku addons:create heroku-postgresql --app <your heroku app name>
Web application installation
Copy the termweb.war
file to <tomcat-install>/webapp
. The war file is extracted automatically into <tomcat-install>/webapps/termweb
if Tomcat is running.
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.
Logging
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.
Set Environment Variable
...
Useful configuration commands
These are some configuration commands to display and/or configure Heroku regarding environmental variables and Java options, or just displaying info about the application
-- show all config parameters:
$ heroku config --app <your heroku app name>
-- show all environmental parameters:
$ heroku run printenv --app <your heroku app name>
-- show application info:
$ heroku info --app <your heroku app name>
Set the Java options environmental variable for example:
$ heroku config:add JAVA_OPTS='-Xms128m -Xmx512m' --app <your heroku app name>
--restart Heroku application
$ heroku restart --app <your heroku app name>
Installation complete
Open your browser and enter httphttps://localhost:8080/termweb. TermWeb now asks for a license. Enter the license that you have received from Interverbum Technology.You yourappname.herokuapp.com/. You should now see the TermWeb login screen. You can log in with client admin
, user admin
and password admin
.
...