Prerequisites:
- Docker: Ensure you have Docker installed and running on your machine.
- Genie Backend: Verify that the genie backend service is running in a Docker container and accessible on your machine.
Steps:
-
Download Java & Apache Tomcat:
-
Extract Tomcat:
- Extract the downloaded zip file to a suitable location on your machine. For example, you can extract it to
D:\apache-tomcat-9.0.30
.
- Extract the downloaded zip file to a suitable location on your machine. For example, you can extract it to
-
Deploy Application Files:
- Copy the
genie.war
file andconfig.props
file to thewebapps
folder inside the Tomcat directory. The typical path would beD:\apache-tomcat-9.0.30\webapps
.
- Copy the
-
Configure Backend URL (Optional):
- Open the
config.props
file in a text editor. - Locate the property that specifies the backend URL. This might vary depending on your application's configuration.
- Update the backend URL with the IP address and port where your genie backend service is running in the Docker container. For example, if the backend service is accessible on
http://localhost:8080
, you might update the property to backend_url=http://localhost:8080
. - Note: This step might be necessary only if your application needs to communicate with the backend service at a specific address.
- Open the
-
Start Tomcat:
-
Open a command prompt window as administrator.
-
Navigate to the Tomcat bin directory. The typical path would be
D:\apache-tomcat-9.0.30\bin
.
-
-
For Windows, run the following command:
startup.bat
-
For Linux or macOS, run the following command:
startup.sh
Once Tomcat is running, you can typically access your web application by opening a web browser and navigating to http://localhost:8080/genie
Comments
0 comments
Article is closed for comments.