Debug the Application and View the Waypoint UI
Warning
This content is part of the legacy version of Waypoint that is no longer actively maintained. For additional information on the new vision of Waypoint, check out this blog post and the HCP Waypoint documentation.
Waypoint includes several commands to support debugging and monitoring your application through the CLI as well as viewing information about projects and applications in the web UI.
In this tutorial, you will learn how to interact with your applications, view logs, and access the Waypoint UI.
Connect to the application container
You can use waypoint exec
to run commands in the context of the most recent deployment. This command is helpful in diagnosing tasks like database migrations and general debugging but you can use it for any purpose.
Warning
HCP Waypoint does not currently support the exec
functionality. It is only available when running self-managed Waypoint servers.
Open a shell prompt to the application's container. Waypoint is aware that a waypoint.hcl
file exists in the current directory and automatically executes against the currently deployed application defined in this configuration file. Your terminal prompt will change to show that you are in the application's container. In this example, the prompt is heroku@77399d60b8f2
.
Validate that this is the correct application deployment by listing out the directory hosting the application's compiled files. Note that the output contains the file structure for the current deployment.
Next, list the processes that are running in the container. Note that node
is running the index.js
for the example application.
Finally, exit the interactive Docker session.
View application logs
In the application's directory, view the logs for the running deployment.
Press Ctrl-C
to stop viewing the logs.
Access the Waypoint web UI
The Waypoint server includes a web-based user interface that you can use to view builds, deployments, and releases for projects and applications.
The web UI is accessible via HashiCorp Cloud Platorm.
Visit HCP Waypoint in your browser.
Review information about the application and associated operations in your browser by clicking on the project name, and then the application name. The navigation bar below the application name includes views for builds, deployments, logs, releases and an in-browser shell that replicates the exec
command.
Next steps
In this tutorial, you learned about the waypoint exec
command and browsed the Waypoint web UI.
Continue on to the Destroy the Deployment tutorial to uninstall the Waypoint components.