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.
...
This project is a Heroku toolbelt plugin for deploying WAR files. It can also be used to deploy executable JAR files.
- Go to
Using the Heroku toolbelt you can write in the command line:
or using the Heroku toolbelt$ heroku plugins:install https://github.com/heroku/heroku-deploy
Add the line
export
JAVA_OPTS=
"$JAVA_OPTS -Xms128m -Xmx512m"
Restart Tomcat after the file is edited and saved. You can confirm that Tomcat has picked up the correct settings by running
ps aux | grep java |
...
2. Check if the heroku-deploy plugin is installed by typing in the command line
$ heroku plugins
And if everything is ok you will see:
=== Installed Plugins
heroku-deploy
Creating a Heroku application
- Create a folder for example termweb-heroku in your local drive.
- Go to the command line and navigate to the created folder from the previous step
- When you are in the targeted folder type in the command line
$ heroku create
4.
Database connection
When Tomcat is installed, please refer to Connecting TermWeb to a Database for setting up and configuring the database.
...
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.
...