Azure / InnovationEngine

An experiment in simplicity for complex environments
MIT License
30 stars 14 forks source link

[RFC] Created AI Converter + Added Static Web App Exec Doc #126

Closed naman-msft closed 5 months ago

naman-msft commented 8 months ago

Created the static web app exec doc with the similarity blocks generated by AI. It works now. Had to get modify the original Azure doc to get around the Git authentication part, which could be reinstated once we allow users to add variables while running the exec doc. Let me know if there are any comments or question!

naman-msft commented 8 months ago

made the changes and pushed with updates

naman-msft commented 8 months ago

@vmarcella: how to troubleshoot this part of the code where I am replicating the curl command to see if the website is live and working but it keeps running in my local ubuntu terminal although a valid URL has been generated.


  1. Validate that the static web app is running by curling the application url:
runtime="5 minute";
endtime=$(date -ud "$runtime" +%s);
while [[ $(date -u +%s) -le $endtime ]]; do
    if curl -L -s -f $MY_STATIC_WEB_APP_URL > /dev/null ; then 
      curl -L -s -f $MY_STATIC_WEB_APP_URL > /dev/null | head -n 9
      break
    else
      echo "Waiting for the static web app to be deployed..." 
      sleep 10
    fi;
done

Results:

<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8 />
<meta name=viewport content="width=device-width, initial-scale=1.0" />
<meta http-equiv=X-UA-Compatible content="IE=edge" />
<title>Azure Static Web Apps - Welcome</title>
<link rel="shortcut icon" href=https://appservice.azureedge.net/images/static-apps/v3/favicon.svg type=image/x-icon />
<link rel=stylesheet href=https://ajax.aspnetcdn.com/ajax/bootstrap/4.1.1/css/bootstrap.min.css crossorigin=anonymous />
mbifeld commented 7 months ago

@vmarcella: how to troubleshoot this part of the code where I am replicating the curl command to see if the website is live and working but it keeps running in my local ubuntu terminal although a valid URL has been generated.

  1. Validate that the static web app is running by curling the application url:
runtime="5 minute";
endtime=$(date -ud "$runtime" +%s);
while [[ $(date -u +%s) -le $endtime ]]; do
    if curl -L -s -f $MY_STATIC_WEB_APP_URL > /dev/null ; then 
      curl -L -s -f $MY_STATIC_WEB_APP_URL > /dev/null | head -n 9
      break
    else
      echo "Waiting for the static web app to be deployed..." 
      sleep 10
    fi;
done

Results:

<!DOCTYPE html>
<html lang=en>
<head>
<meta charset=utf-8 />
<meta name=viewport content="width=device-width, initial-scale=1.0" />
<meta http-equiv=X-UA-Compatible content="IE=edge" />
<title>Azure Static Web Apps - Welcome</title>
<link rel="shortcut icon" href=https://appservice.azureedge.net/images/static-apps/v3/favicon.svg type=image/x-icon />
<link rel=stylesheet href=https://ajax.aspnetcdn.com/ajax/bootstrap/4.1.1/css/bootstrap.min.css crossorigin=anonymous />

Have you made any progress on this issue @naman-msft?

mbifeld commented 6 months ago

The converter files should not be in the top level of the repo, they should be in a specific folder. Can you also add to the description of the PR the AI converter changes? Right now it appears that the PR is just for the static web app.

naman-msft commented 6 months ago

The converter files should not be in the top level of the repo, they should be in a specific folder. Can you also add to the description of the PR the AI converter changes? Right now it appears that the PR is just for the static web app.