|Summary: this page describes how to change the CAST Dashboard access port, for example to enable HTTPSstart and stop the 2.x ZIP deployments.|
This information is only valid for CAST Dashboard ≥ 2.x when using a ZIP file deployment (i.e. without Apache Tomcat).
Out of the box, the 2.x ZIP files are provided with start-up and shut down scripts that are used to start/stop the web applications manually:
Microsoft Windows <unpacked_zip>\startup.bat *** there is no shutdown.bat for Microsoft Windows - use the CTRL+C escape key to gracefully stop the server if it has been started with the startup.bat file. Linux <unpacked_zip>\startup.sh <unpacked_zip>\shutdown.sh
In addition, for Microsoft Windows deployments, CAST provides scripts to install/uninstall a Microsoft Windows Service. Installation instructions are provided in the relevant dashboard installation guide:
- Standalone Engineering Dashboard deployment using ZIP file
- Standalone Health Dashboard deployment using ZIP file
- Standalone RestAPI deployment using ZIP file
Auto start via batch script
If you are not using a Microsoft Windows Service (i.e. using the startup script son Linux and Windows) and you need to start the web application when the host server starts, follow the instructions below.
To auto run a batch script when the host server starts can be achieved in many different ways. Two methods that can be used are explained below:
Create a scheduled task that is set to call the startup.bat file when the host server restarts:
Create a shortcut to the startup.bat file and then move the shortcut to either of the the StartUp folders (the %PROGRAMDATA% folder is for all users of the machine, so is not user dependent):
- %PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\StartUp
- %APPDATA%\Microsoft\Windows\Start Menu\Programs\StartUp
There are various methods of automatically running a .sh script on host server startup: