Deploying React apps to Azure Web App with Azure DevOps

Sdílet
Vložit
  • čas přidán 20. 06. 2020
  • This video describes how to deploy React apps to Azure with Azure DevOps CI/CD.

Komentáře • 91

  • @jl-dq5ch
    @jl-dq5ch Před 4 lety +7

    This guy rocks! Even going through the Microsoft blog post on this and multiple vids left me in the dark but now I can see the issue was with where the build file is and how to go about pointing to it. Lifesaver buddy. Thanks!

    • @TechiesLounge
      @TechiesLounge  Před 4 lety +1

      Glad I could help you.

    • @k3agan
      @k3agan Před 3 lety

      That's what tripped me up as well 😂

  • @damianusdeni1449
    @damianusdeni1449 Před 3 lety +5

    Concise, clear and great explanation.
    Only following this tutorial, I managed to deploy my application without opening stack overflow or other forum sites.
    This is my first deployment using azure.

  • @poojanpatel6885
    @poojanpatel6885 Před 2 lety +3

    Self-explanatory ! A perfect video for freshers in Azure Devops . Thank you!

  • @family.vibes.unleashed
    @family.vibes.unleashed Před 3 lety +5

    Simple and precise tutorial. A perfect video for a beginner who wants to experience their first hands-on! Thank you so much!

  • @nathennk474
    @nathennk474 Před 3 lety +2

    Best Tutorial Ever, Really straight forward and easy to follow. Much appreciated !

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      Glad you think so ! Really appreciate your support.

  • @chityalasrikanth8030
    @chityalasrikanth8030 Před 2 lety

    That was clean and neat explanation.

  • @chaosknight3175
    @chaosknight3175 Před 2 lety

    This is done the right way. Thanks man!

  • @julfinch
    @julfinch Před rokem

    Thank you so much for this one. So easy to follow and no BS. Subscribed!

  • @jaideepsingh8109
    @jaideepsingh8109 Před rokem

    Great tutorial. Straight to point. Thanks

  • @febithomas9115
    @febithomas9115 Před 4 lety +1

    Good information for techies 👍

  • @techbrother5815
    @techbrother5815 Před 3 lety +1

    The is the best. Quick and precise.

  • @abhishekaryan7575
    @abhishekaryan7575 Před 3 lety +1

    very very helpful, you saved my day. Thanks great work

  • @hareshkumar7703
    @hareshkumar7703 Před 4 lety +2

    He is an absolute great tutor

  • @sruthimystic1834
    @sruthimystic1834 Před rokem

    Thank you very much. Your tutorial saved my day

  • @oluwakemidada9239
    @oluwakemidada9239 Před 3 lety +1

    You are the best. Thank you!

  • @whatwouldjesusdrive
    @whatwouldjesusdrive Před rokem +2

    Thanks, this video was very helpful, everything worked first time for me on a project I made using create-react-app, but then I made another that used Vite instead. Everything was the same except I got an error that the publish artifact: drop step couldn't find the path to publish "build", after a while i realized Vite doesn't name the build folder "build" it names it "dist". So on the Publish Artifact: Drop > Path to Publish > i entered "dist" instead and it worked

  • @toulchinski
    @toulchinski Před rokem

    Very Cool! Greay tutorial! Thank you! 🙏

  • @jinhe620
    @jinhe620 Před 3 lety +1

    you saved my life man!!!!!

  • @malakali-kx3uy
    @malakali-kx3uy Před 8 měsíci +1

    🎉🎉 you are really super ,Thank you

  • @damonwu9658
    @damonwu9658 Před 3 lety +1

    Good one 👍

  • @FullStackPro
    @FullStackPro Před 2 lety

    Thank you ❤️

  • @MaziSaidSo
    @MaziSaidSo Před 4 lety +1

    beautiful

  • @anilashivasankaran6402
    @anilashivasankaran6402 Před 4 lety +1

    Good presentation..👍

  • @RohitSaini-go3cr
    @RohitSaini-go3cr Před 3 lety +1

    Thank you very much.

    • @TechiesLounge
      @TechiesLounge  Před 3 lety +1

      Glad you enjoyed it ! Really appreciate your support.

  • @iisrrael1993
    @iisrrael1993 Před rokem

    Excelente

  • @fastride1
    @fastride1 Před 3 lety +1

    Thank you for such a great video, are you planning to make any video on ASP.NET core as backend API and React as a frontend to deploy on the server?

  • @DhanyasHomeKitchen
    @DhanyasHomeKitchen Před 4 lety +1

    Good video

  • @adedolapookunsanmi6152

    Hi, Also wondering how we can pass enviroment variables using this step.

  • @emanuelsuarez7002
    @emanuelsuarez7002 Před 3 lety

    extremely useful!!! thanks for sharing. what if i want to add a second member to deploy form his computer?

  • @bhavya5759
    @bhavya5759 Před 2 lety

    please create video on Build once Deploy Many with ReactJs and Azure with different environment

  • @carlossiles5609
    @carlossiles5609 Před 3 lety +1

    This is a great video! I followed every step, the drop was created and in the Development Center I see a message "Deployed Successfully to production", but for some reason is not updating production. Any ideas?

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      If the Drop folder is having the proper build files, the issue must be with the deployment part or App settings.
      As a first step, you can check it out the deployed folder in Azure Web App has the right files. For that you can use the Admin tool Kudu. This tool will allow you to see the folder structure where you deployed in Azure. You can refer this Video to understand how to connect and see the folder structure using Kudu or FileZilla. czcams.com/video/3wF99gvBFcw/video.html .
      If the deployed folder has all the files, then the issue must be with your Web app setup Or can be because of some extra folders added in the deployed location (This can be because of your folder structure you are using in the source code). In that case you have to either remove that folder in the Drop folder or access the website with the extra folder in the URL.
      Let me know if this resolved your issues. Else we will dig into details..

  • @uttamchaturvedi
    @uttamchaturvedi Před 3 lety +2

    Thanks for sharing.. While building react pipeline, I am getting this warning ##[warning]Directory '/home/vsts/work/1/a' is empty. Nothing will be added to build artifact 'drop'. This causing my release pipeline to fail.

    • @TechiesLounge
      @TechiesLounge  Před 3 lety +1

      This must be because of the folder structure difference in your project. Where exactly your project.json file present? Open your Azure Repository and check your folder structure and see if it is different at the 2:20 minutes in this video? If your package.json folder is inside any folder (which is different from this video), go to the video 3:27 minutes where you are setting up the "npm install" job and select the 3 dots after the "working folder that contains the package.json" and choose the right folder where your package.json file present. Same action required for "npm build" job as well.
      If you are still getting this error you can send me the screenshots to my mail id "techiesloungeteam@gmail.com" and I am happy to help you. Please message if this issue resolved.

  • @harithathalapaneni9990

    Is it possible to trigger the aab and ipa files using the Titanium application. I don't see an option for custom apps.

  • @ludovicbenard8679
    @ludovicbenard8679 Před 3 lety

    Hi, thanks for the video. Is it the same process with a GRANDstack app ? (GrapQL, React, Apollo, Neo4j Database)

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      Yes. But the Pipeline Tasks you choose to install and build may be different for other project types like GrapQL, .NET etc.

  • @christopherskogfeldt8831

    Is it possible to change the config from let´s say if I use Maven but I suppose to use React instead.
    Is that possible or do I need to create a total new project and do everything from the beginning again?

  • @emmanuelbamidele5064
    @emmanuelbamidele5064 Před 11 měsíci

    i did the same thing and i am still seeing the default page when i browse to the azurewebsite

  • @uaena182
    @uaena182 Před 2 lety

    Thanks for this.
    However when I successfully deployed my react app on Azure App service via Azure DevOps, I get the error "The service is unavailable" on a white screen upon accessing the Azure URL. Kindly advise. thanks

  • @trustlang_ua
    @trustlang_ua Před 3 lety +1

    what about react-router-dom? If I have a few routes do I need to make additional steps?

    • @Milpatel11
      @Milpatel11 Před 3 lety +1

      you need to add web.config file in your public folder checkout stack overflow someone has posted the answer what to write in that file

  • @rasplili129
    @rasplili129 Před 3 lety

    Everything up-to-date Branch 'master' set up to track remote branch 'master' from 'origin'. But your project is emty

  • @dekcode2824
    @dekcode2824 Před 2 lety +1

    This should be the default Azure documentation

  • @ajaysh73
    @ajaysh73 Před 11 měsíci

    Can you do a video on next js deployment on Azure with a local agent as MS doesn't provide free parallism. I'm getting an internal error after following all the steps.

  • @lucasmunoz4861
    @lucasmunoz4861 Před 2 lety

    Does this work for next js?

  • @TranHoang-tj7rb
    @TranHoang-tj7rb Před rokem

    sorry sir ! where can I put variable in .env?

  • @vivekmurli5137
    @vivekmurli5137 Před 3 lety +1

    Appreciate the video !!
    I have been trying to deploy nextjs app to Azure DevOps and experiencing challenges at the time of publishing artifacts.
    While adding The Publish Artifact to the pipeline , I entered build under under Path to Publish and got the error "Publishing build artifacts failed with an error: Not found PathtoPublish: D:\a\1\s\build"
    I also replaced build with next and got the same error
    Can you please suggest what needs to be entered under "Path to publish"?
    Any help would be appreciated

    • @ludovicbenard8679
      @ludovicbenard8679 Před 3 lety

      I have the same error

    • @vivekmurli5137
      @vivekmurli5137 Před 3 lety

      @@ludovicbenard8679 I managed to fix it with the help of the article
      parveensingh.com/next-js-deployment-on-azure-app-service/

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      Hi Vivek Murli, issue is because your "Publish build artifacts" task (3rd Task) is not able to locate the "build" folder. This must be because, your package.json may not be on the root folder !
      Suppose your package.json file is under a different folder eg. "Sample/package.json", you have to do the following two steps :
      1) In the Build pipeline, 2nd Task ie. "npm build" -> "Working folder that contains package.json" field you should mention "Sample"
      2) in the Build pipeline, 3rd Task ie "Publish build artifacts" -> "Path to publish" field you can mention "Sample\build"
      This should resolve your problem. Let me know if the error still not resolved!

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      Hi @@ludovicbenard8679, issue is because your "Publish build artifacts" task (3rd Task) is not able to locate the "build" folder. This must be because, your package.json may not be on the root folder !
      Suppose your package.json file is under a different folder eg. "Sample/package.json", you have to do the following two steps :
      1) In the Build pipeline, 2nd Task ie. "npm build" -> "Working folder that contains package.json" field you should mention "Sample"
      2) in the Build pipeline, 3rd Task ie "Publish build artifacts" -> "Path to publish" field you can mention "Sample\build"
      This should resolve your problem. Let me know if the error still not resolved!

  • @angrishdeepty
    @angrishdeepty Před 3 lety

    @Techies Lounge I got a warning "Directory 'D:\a\1\a' is empty. Nothing will be added to build artifact 'drop'. but build pipeline got succeeded. Please suggest. Many thanks.

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      This must be because of the folder structure difference in your project. Where exactly your project.json file present? Open your Azure Repository and check your folder structure and see if it is different at the 2:20 minutes in this video? If your package.json folder is inside any folder (which is different from this video), go to the video 3:27 minutes where you are setting up the "npm install" job and select the 3 dots after the "working folder that contains the package.json" and choose the right folder where your package.json file present. Same action required for "npm build" job as well.
      If you are still getting this error you can send me the screenshots to my mail id "techiesloungeteam@gmail.com" and I am happy to help you. Please message if this issue resolved.

  • @Joelpyro
    @Joelpyro Před 3 lety +1

    hey, I've been getting a warning and immediately after that an error... the only message for the warning and error I get is "Couldn't find a debug log in the cache or working directory" I've been following your tutorial step by step but I got stuck in the pipelines... not that I have done anything wrong, but I think there's a setting required maybe? Does it have to do that I am doing this on a Mac computer?

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      This must be because of the folder structure difference in your project. Where exactly your project.json file present? Open your Azure Repository and check your folder structure and see if it is different at the 2:20 minutes in this video? If your package.json folder is inside any folder (which is different from this video), go to the video 3:27 minutes where you are setting up the "npm install" job and select the 3 dots after the "working folder that contains the package.json" and choose the right folder where your package.json file present. Same action required for "npm build" job as well.
      If you are still getting this error you can send me the screenshots to my mail id "techiesloungeteam@gmail.com" and I am happy to help you. Please message if this issue resolved.

    • @Joelpyro
      @Joelpyro Před 3 lety +1

      @@TechiesLounge Thank you for how quickly you replied. You were right about the folder structure. Azure doesn't allow empty folders so what I did is I created the deployment folder myself and then added and empty file. After that I changed the directory address in the pipeline settings. The deployment process works fine now. However, I have a new issue. When I follow the url of my web app I get this "You do not have permission to view this directory or page." Any ideas how I can solve this issue? Thanks again for all your help!

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      @@Joelpyro because of the folder structure change, the website also might have added some additional folder in the URL. What you can do is, go to the Azure portal and open then the Kudu tool from the Web app and see where exactly the files are deployed. One on my another video I have mentioned how to deploy using Kudu admin tool. Seeing that you can understand how to see the folder structure once after you deployed using Azure DevOps. Please share me the screenshots to my mail id if the issue still persists. You can refer this URL czcams.com/video/3wF99gvBFcw/video.html
      To resolve the folder structure issue, you can make changes in the Publish Artifacts Task and remove the additIonal folder if it is adding.

    • @Joelpyro
      @Joelpyro Před 3 lety

      @@TechiesLounge I finally found the problem. It seems that the building process goes through, but no files are created in the directory I pointed. When I look inside the "drop" folder, there's nothing there. So even though the building process is completed, the files are not in the "drop" folder, and I have no idea where they are.

  • @shrutibramhankar5902
    @shrutibramhankar5902 Před 4 měsíci

    Not a git repository (or any of the parent directories): .git how to resolve this

  • @ZeusGroup
    @ZeusGroup Před 3 lety +1

    Don't think it is simple. But nice tutorial!

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      It is simple.. watch two more times and everything will be clear for you !

  • @anandhu5082
    @anandhu5082 Před 3 lety +1

    why do we select Runtime stack ASP.NET? instead of Node JS @6:30

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      Runtime Stack: Select the platform or framework you used to create and run your web app.
      When we are deploying a React application , we just need a web server which renders the ReactJS code to the client side browser and browser executes the ReactJS code. So we can use any web server to deploy a FrontEnd applications.

    • @anandhu5082
      @anandhu5082 Před 3 lety

      @@TechiesLounge sorry, actually that was exactly why I asked that question, we created react app using NodeJS right?.. so the runtime stack should be NodeJS right? why asp.net??

    • @TechiesLounge
      @TechiesLounge  Před 3 lety

      Hi @@anandhu5082, We are not using NodeJS to create the ReactJS application, instead we are using NPM (Node Package Manager) to create the ReactJS application. But Once we create the release files using NPM RUN BUILD, there is no dependency with NPM as well and it will be a pure ReactJS application with HTMLs, Javascript and CSS.

    • @anandhu5082
      @anandhu5082 Před 3 lety +1

      @@TechiesLounge perfect thankyou!.

  • @pottanatgeorge
    @pottanatgeorge Před 2 lety

    my react build now needs to say, "run-script build " be aware.

  • @anoop.225
    @anoop.225 Před 2 lety

    Getting below error, How to fix ?
    32 error code EBADPLATFORM
    33 error notsup Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
    34 error notsup Valid OS: darwin
    34 error notsup Valid Arch: any
    34 error notsup Actual OS: win32
    34 error notsup Actual Arch: x64

  • @rickybailey6157
    @rickybailey6157 Před 2 lety

    Great video. Got me a lot further than other instructions, but I have an issue I just can't get past.
    Just as the video has at 5:05, I have the build artifacts 'drop' folder containing files (but not a zip file).
    It's at 10:02, with the release, where things differ.
    In my log, the next line after "Got service connection details for Azure App Service:'testmyreact'", I get the line "Package deployment using ZIP Deploy initiated." I don't have the references to WEBSITE_RUN_FROM..... And it definitely doesn't go to "Successfully deployed web package to App Service".
    Instead it has "Preparing deployment...", references to oryx build, and eventually "Detecting platforms...", "Could not detect any platform in the source directory.", "Error: Couldn't detect a version for the platform 'nodejs' in the repo.". A few other errors that eventually leads to "##[error]Error: Package deployment using ZIP Deploy failed. Refer logs for more details".
    I've been researching this for a few days without luck. I'm guessing I'm missing something simple.
    Any ideas out there?