I am using microsoft azure in my website. I have added the website thru github. But it was not opening in browser. kindly guide me to fix my issue

Ramya Jeevan 0 Reputation points
2023-10-03T05:55:38.98+00:00

I am using microsoft azure in my website. I have added the website thru github. But it was not opening in browser. kindly guide me to fix my issue

https://herbhue.azurewebsites.net/herbhue/public/login

Also the deployment thru github is very slow.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,407 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 27,111 Reputation points Microsoft Employee
    2023-10-03T20:35:03.4133333+00:00

    Hi @Ramya Jeevan you really didn't provide any insights into what errors you're seeing with your app service, how you created the app service, or how configured the GitHub Actions workflow. Without these details, it makes it difficult for the community to effectively assist.

    Having said that, I encourage you to review Tutorial: Use GitHub Actions to deploy to App Service and connect to a database and run through this tutorial to get a working example. After getting a working example, you can compare/contrast your working example to your current project/deployment. You can also use diagnostic tools to investigate why your application isn't running as expected.

    If you're still stuck after reviewing logs and comparing against a working example, please feel free to comment with log excerpts and configuration information, i.e., language stack, region, deployment, etc.


    EDIT 4 Oct 2023 Based off your comment above, Tutorial: Deploy a PHP, MySQL, and Redis app to Azure App Service is a better tutorial to follow. For PHP Laravel apps, it starts in /public so you don't need that in your url. However, based on your app, you may need to change the site root.


    EDIT 10 Oct 2023 I see your GitHub and I understand now.

    You have two different web apps in the same repo, herbhue-admin and herbhue. I checked your yaml and to be honest, I'm not sure which artifact is getting deployed, but both apps are Laravel apps so the platform needs to know the composer.json to run. The platform will automatically detect this file in the root of /home/site/wwwroot but I suspect your app is deploying as is with Index.php in the root with /wwwroot/herbhue and /wwwroot/herbhue-admin. You can't traverse site root like a folder for rendering and that's your issue. I suggest following PHP tutorial I linked above to correct your issue. You need to either remove one of apps from your repo and restructure so that composer.json is in the root or restructure your yaml so that only one of the app folders gets deployed to your app service.

          - name: Upload artifact for deployment job
            uses: actions/upload-artifact@v2
            with:
              name: php-app
              path: ./herbhue-admin
    
    
    0 comments No comments