Skip to content

Commit

Permalink
Update - add different error messages based on feature-flag
Browse files Browse the repository at this point in the history
  • Loading branch information
aybruhm committed Dec 8, 2023
1 parent 86ba72b commit 73ebda9
Showing 1 changed file with 32 additions and 16 deletions.
48 changes: 32 additions & 16 deletions agenta-web/src/components/Playground/ViewNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
waitForAppToStart,
} from "@/lib/services/api"
import {useAppsData} from "@/contexts/app.context"
import {isDemo} from "@/lib/helpers/utils"
import {isDemo, isCloud, isEnterprise} from "@/lib/helpers/utils"

interface Props {
variant: Variant
Expand Down Expand Up @@ -174,21 +174,37 @@ const ViewNavigation: React.FC<Props> = ({
Verify whether the API is up by checking if {apiAddress} is
accessible.
</li>
<li>
Check if the Docker container for the variant {variantDesignator} is
active by running the following command in your terminal:
<pre>docker logs {containerName} --tail 50 -f</pre>
Running the above command will enable you to continuously stream the
container logs in real-time as they are generated.
</li>
</ul>
<p>
{" "}
In case the docker container is not running, please check the Docker
logs to understand the issue. Most of the time, it is due to missing
requirements. Also, please attempt restarting it (using cli or docker
desktop).
</p>
{isCloud() && (
<div>
<li>
Check if the lambda function for the variant {variantDesignator} is
active by running the following command in your terminal:
<pre>agenta get logs --variant :variant_id:</pre> or <pre>agenta get logs :variant_id:</pre>
Running the above command will enable you to view the latest logs stream events.
</li>
</div>
)}
{isEnterprise() && (
<div><li></li></div>
)}
{!isCloud() && (
<div>
<li>
Check if the Docker container for the variant {variantDesignator} is
active by running the following command in your terminal:
<pre>docker logs {containerName} --tail 50 -f</pre>
Running the above command will enable you to continuously stream the
container logs in real-time as they are generated.
</li>
<p>
{" "}
In case the docker container is not running, please check the Docker
logs to understand the issue. Most of the time, it is due to missing
requirements. Also, please attempt restarting it (using cli or docker
desktop).
</p>
</div>
)}
<p>
{" "}
If the issue persists please file an issue in github here:
Expand Down

0 comments on commit 73ebda9

Please sign in to comment.