Тёмный
No video :(

Azure DevOps & Create React App : Build/Release Pipeline 

Rahul Nath
Подписаться 32 тыс.
Просмотров 47 тыс.
50% 1

In this video, we will see how to set up a build/deploy pipeline for Create React App in Azure DevOps. We will be using the YML format for the pipeline here, which makes it possible to have the build definitions as part of the source code.
Azure DevOps Build Release Pipeline For Create React App: www.rahulpnath...
Create React App: reactjs.org/do...
Azure DevOps: azure.microsof...

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 191   
@RahulNath
@RahulNath 4 года назад
Here is a link to the Azure DevOps project - This should give access to the source code and the pipeline setup. Drop a comment in case you need any help! rahulpnath.visualstudio.com/build-deploy
@vipuldiwan
@vipuldiwan 4 года назад
Hello Rahul I am getting error message while npm run build "##[error]Error: Npm failed with return code: 1 ", please help.
@RahulNath
@RahulNath 4 года назад
@@vipuldiwan Do you have more details on the error? It should either be in the log or in the console. Any screenshot?
@SaleedherM
@SaleedherM Год назад
@@RahulNath ##[error]Error: ENOENT: no such file or directory, stat '/home/vsts/work/1/s/src/build' ##[error]ENOENT: no such file or directory, stat '/home/vsts/work/1/s/src/build'
@yab570
@yab570 2 года назад
There should be a option in RU-vid to like the video multiple times. I would have like it at least 100 times. You just saved weeks effort for me to set up the all this. You are awesome. Please continue the good work.
@RahulNath
@RahulNath 2 года назад
Wow, thanks Yuvraj! This comment has made my day! 🙂
@aikidoshi007
@aikidoshi007 3 года назад
I like that in all the videos of yours that I've watched, you don't start with a half-baked solution, you actually start with nothing. There were some Azure artefacts in this one you had created earlier, but I'm guessing you have a previous video for all that stuff. It's really nice to have a repeatable process from scratch. You're doing a great job with these videos.
@RahulNath
@RahulNath 3 года назад
Thank you again Steve for your support. Which artefacts were created earlier? I set up from a blank create react app and set up the pipeline end to end in this. There are a few other follow up videos though that build up on this video. Happy to clarify if you could point me the artefact you are referring to.
@JonathanZufi
@JonathanZufi 4 года назад
Great video - very clear and concise and a great intro to MS's platform for CI and CD. Thank you!
@RahulNath
@RahulNath 4 года назад
Thank you for you comment and Glad it was helpful!
@suhasinin9145
@suhasinin9145 2 года назад
You saved my day, I was trying to do this from past 2 days and today I got his done in just 4 hours. You have a new follower now.
@RahulNath
@RahulNath 2 года назад
Great to know that Suhasini nd thank you!
@MartyBallard
@MartyBallard 2 года назад
Rahul, you did a really great job on this tutorial!
@RahulNath
@RahulNath 2 года назад
Thank you Marty!! You can check out the full devops series here bit.ly/azure-devops-series
@vinhle1970-channel
@vinhle1970-channel 2 года назад
I m quite impressed at most of your content and how you find way to present them in an easy to understand. Oh and it helps tremendously that you don’t have such a heavy Indian accent which most of the other same background RU-vidrs will be struggled with followers ! And most of all you chose Aussie land as the place to be!
@RahulNath
@RahulNath 2 года назад
Thank you Vinh! Very happy to hear this especially because you find the content easy to understand and well introduced. This is something I spend a lot of time and try hard when I make new content. Do let me know if you have any specific topic suggestions.
@nicolasherrera5432
@nicolasherrera5432 3 года назад
gracias amigo sos un crack hace tiempo buscaba esto, capoooooo
@RahulNath
@RahulNath 3 года назад
Pretty sure that means good (double checked with google translate). Glad it helped and thanks for the comment!
@Adrianrodriguezvega1989
@Adrianrodriguezvega1989 4 года назад
Excellent job Rahul, clear and straight to the point. thanks.
@RahulNath
@RahulNath 4 года назад
Thank you and glad you liked it!
@Anubis10110
@Anubis10110 Год назад
Thank you for your time Rahul
@Sv-ry9lj
@Sv-ry9lj Год назад
Awesome! Thank you
@RahulNath
@RahulNath Год назад
You're welcome!
@clarkmaine1118
@clarkmaine1118 4 года назад
This is an awesome video. I had trouble with doing this before I saw your video. Keep the videos up!
@RahulNath
@RahulNath 4 года назад
Thank you and happy it helped 😀
@MistaWu
@MistaWu 3 года назад
Thank you so very much, this really helped my team mates and I, I'm grateful...
@RahulNath
@RahulNath 3 года назад
Thank you for your kind words and glad it helped you and your team!
@jitendrajahagirdar2629
@jitendrajahagirdar2629 3 года назад
Thanks a lot this video really helpful
@RahulNath
@RahulNath 3 года назад
Glad it helped Jitendra!
@akungubrian6406
@akungubrian6406 5 месяцев назад
Thank you for this
@dr.subhashbhagavankommina4625
@dr.subhashbhagavankommina4625 2 года назад
Nice tutorials to learn DevOps Can we expect a tutorial on Asp.net boiler plate (ABP) in azure DevOps
@RahulNath
@RahulNath 2 года назад
Glad you like them - I’ve a few in my series ru-vid.com/group/PL59L9XrzUa-m7AFDgjWuwm6exyCklc03U that shows SPA template , with webjobs etc. Let me know if that helps
@nmsepic8798
@nmsepic8798 3 года назад
Thanks 👍
@RahulNath
@RahulNath 3 года назад
Welcome 👍
@neerajsagar5092
@neerajsagar5092 4 года назад
fantastic video.. you rocked!!
@RahulNath
@RahulNath 4 года назад
Thank you for the lovely comment - Glad it helped!
@ImranAli-tq4zs
@ImranAli-tq4zs Год назад
Hi Rahul, amazing video very concise to the point. I have one questions. Is it possible to add build or release number to somewhere to release react web.
@RahulNath
@RahulNath Год назад
Yes you can use variable replacement and use that to replace the build number in a json file. Let me know if you get stuck doing it
@manpreetbedi2291
@manpreetbedi2291 2 года назад
thanks bro
@RahulNath
@RahulNath 2 года назад
Welcome Manpreet!
@prasadmadushan
@prasadmadushan 4 года назад
simple and informative, how to create a release(not deploy) when I commit to the branch. Thanks
@RahulNath
@RahulNath 4 года назад
Thanks Prasad and glad you liked it. For creating the release only, you can turn the trigger on the stage to be manual only. I show that in this video here - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-eGcosoC43vI.html You can also read about it here -docs.microsoft.com/en-us/azure/devops/pipelines/release/triggers?view=azure-devops#stage-triggers Let know if that helps
@jugsma6676
@jugsma6676 4 года назад
Thanks, well explained and crystal! can you share us using Docker and Docker-compose, and from App Service Plan and App Service.
@RahulNath
@RahulNath 4 года назад
Glad it helped and thank you for the feedback. I will add it to my list of videos, but can't guarantee when I will be able to do it. Will let know back here once I publish.
@jugsma6676
@jugsma6676 4 года назад
@@RahulNath , Sure no worries. I am missing this exact connection between Azure DevOps (CI/CD) and Azure App Service. Appreciate your response, Thanks!
@RahulNath
@RahulNath 4 года назад
@@jugsma6676 Cool ok - If you have any specific question feel free to drop a comment and I can try and help!
@Naapi
@Naapi 4 года назад
Thanks for the really helpful video and subbed! I've started learning Azure DevOps for my small React & .Net project and been trying to figure how to setup azure-pipelines.yml to automate pipelines without clicking things in portal eg. environments. Would be helpful if you can go deeper with multi branch, environments and things you can do with azure-pipelines.yml for automation and IaC perspective :).
@RahulNath
@RahulNath 4 года назад
Glad it helped and thank you for the feedback! The yml files lives as part of the repository and can be authored directly in your code editor. I will do a video showing this and link back here once done. Did you have anything in particular in mind around 'multi branch, environments' ? I talk about release and release management in the DevOps variables video here (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OFr6Vkw0mq8.html)
@Naapi
@Naapi 4 года назад
@@RahulNath Was thinking of learning so that I have Prod & Test + own local Dev branches which separately push to the own Prod/Test pipelines. Then to release pipeline which pushes to heroku in docker containers. Hopefully as much as I can in azure-pipelines.yaml to use same type of environment in future projects. Slow process, but making lot of mistakes and trying again :) Thanks for the input. I will check that video
@RahulNath
@RahulNath 4 года назад
Just published a follow up video on using ARM templates to automatically create infrastrcuture . Thought it might be of help to you. Check it out here - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3IRwtbGlshk.html
@Naapi
@Naapi 4 года назад
@@RahulNath Thanks again! I will check it out!
@nandakumarp3537
@nandakumarp3537 4 года назад
Very helpful Rahul
@RahulNath
@RahulNath 4 года назад
Thank you and happy it helps!
@Peamceout
@Peamceout 3 года назад
no such file or directory, stat '/home/vsts/work/1/s/src/build' I am getting this. What should I do?
@RahulNath
@RahulNath 3 года назад
Hard to tell. Are you sure you followed the steps correctly? You can view the sample pipeline here rahulpnath.visualstudio.com/build-deploy rahulpnath.visualstudio.com/build-deploy/_build?definitionId=11 Let me know if you are able to find the problem. If not share me the public URL and I can take a look
@nazneen2678
@nazneen2678 2 года назад
I added a script "npm test" to also run tests along with creating a build but the it does not run, nor does it produce any error.
@RahulNath
@RahulNath 2 года назад
I have a video here covering setting up tests in the pipeline. I cover npm test as well ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FFxww1-M25E.html Kindly let me know if you have additional questions
@albertogentilcore2193
@albertogentilcore2193 7 месяцев назад
Hi, do you have a video with a API in net Core using EF? How to should be if I have migrations to run in each environments?
@jitendrajahagirdar2629
@jitendrajahagirdar2629 3 года назад
I just want to know about "npm test" that is missing in video. Please show how to create pipeline for "npm test" ?
@RahulNath
@RahulNath 3 года назад
You might find this helpful ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-FFxww1-M25E.html
@jitendrajahagirdar2629
@jitendrajahagirdar2629 2 года назад
@@RahulNath thanks
@marcfernandez6132
@marcfernandez6132 4 года назад
Really nice video, Thanks!
@RahulNath
@RahulNath 4 года назад
Glad you liked it and thank you for the comment!
@marcfernandez6132
@marcfernandez6132 4 года назад
@@RahulNath You can do it the same but using tfs control code?
@RahulNath
@RahulNath 4 года назад
@@marcfernandez6132 Are you referring to TFS source control? Sure that it should be possible there as well, as long as you use the appropriate task and commands. I have not used one for a long time, so I can't be of much help there.
@dand4485
@dand4485 4 года назад
@Rahul Nath Nice job :)
@RahulNath
@RahulNath 4 года назад
Thanks Dan!
@11504104067
@11504104067 4 года назад
Thanks a lot Rahul .. Super Like... :) .
@RahulNath
@RahulNath 4 года назад
Thanks Rakesh 😀
@jonahjohnbaba
@jonahjohnbaba 3 года назад
Wow thanks. I am an M&E specialist and I am thinking developing data collection app to collect field data and power it on Power BI using the Azure server. Is this doable and tips on how to go about it. Thanks
@RahulNath
@RahulNath 3 года назад
Thank you Jonah. That is a very broad question. I am sure it is doable. Is there anything in particular that you are stuck with or need help? Suggest breaking it down into smaller parts and handling itone by one if you are new to it.
@Lucas-di4jy
@Lucas-di4jy Год назад
i got an error in ArchiveFiles task: no such file or directory, stat '/home/vsts/work/1/s/src/build' any idea?
@manaspal5
@manaspal5 9 месяцев назад
I am also facing same error
@gauravjoshi5054
@gauravjoshi5054 3 года назад
Awesome video Rahul . one question how to use build artifacts in ymal. I saw you just picked from the location but same I have to do in ymal any help please..?
@RahulNath
@RahulNath 3 года назад
hey Gaurav, glad you liked it. Can you point to me the video location that you are referring to, might help to understand better what you are looking for.
@gauravjoshi5054
@gauravjoshi5054 3 года назад
@@RahulNath these is respect to release pipeline its start from 7.24 when you are adding artifacts from source type. _build-deploy I want the same process in the ymal file. I have release pipeline where I'm consuming two artifacts in Devops UI it pretty straightforward just like you explained the video but I have to migrate my release pipeline to ymal file and here I'm stuck wondering what is the correct syntax. resources: pipelines: - pipeline: _ABCpipeline project: test servicing source: PackageInfrastructure
@RahulNath
@RahulNath 3 года назад
@@gauravjoshi5054 Does this doc help? docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#resources&WT.mc_id=AZ-MVP-5003875 One way I have found easy is to manually define this on a sample pipeline and export it to YAML to check for the syntax. Let know if that helps you
@manaspal5
@manaspal5 Год назад
Thanks Rahul for your wonderful explanation. I have created a release pipeline which is used to deploy package in ten web servers. All servers are added in a deployment group. I want to restart application polls of all servers after IIS Web App Deploy step. How I can configure that? (From IIS Web App Manage under the section Additional appcmd.exe commands, I can write app pool recycle command to do that. But I want to do it after IIS Web App Deploy step)
@klides
@klides 3 года назад
Very nice video bro! There is any way to throw release directly to the IIS server instead to azure?
@RahulNath
@RahulNath 3 года назад
Glad you like it. Are you looking to deploy to a Virtual Machine? You can check out this video where I show how to do that. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uSEx5QiuOCw.html . You can also use the IIS Web App Deploy task if that is what you are looking for - docs.microsoft.com/en-us/azure/devops/pipelines/tasks/deploy/iis-web-app-deployment-on-machine-group?view=azure-devops. Let know if you have further questions.
@klides
@klides 3 года назад
@@RahulNath I'm looking to deploy to a IIS in a VPS but not an asp.net application. I'm looking to deploy a react application. I do a CI correctly but in CD only have to deploy a React App to Azure.
@beanghosh3195
@beanghosh3195 7 месяцев назад
Hello very nice explanation, I followed your steps but still getting the following error. can U pls help? ##[error]Error: ENOENT: no such file or directory, stat '/home/vsts/work/1/s/src/build'
@jennisonb37
@jennisonb37 4 месяца назад
5:50 How did your script run after this successfully when line 11 references uiSouce (not uiSource) in the string interpolation?
@RahulNath
@RahulNath 4 месяца назад
Good catch! I might have fixed that typo after that and fixed it in editing 😀 The full pipeline is here rahulpnath.visualstudio.com/_git/build-deploy?path=/azure-pipelines.yml Let me know if that helps.
@abdouldia1605
@abdouldia1605 4 года назад
Thanks Rahul! Is it possible to deploy in appservice into a specific subfolder using variables?
@RahulNath
@RahulNath 4 года назад
Yes there are ways to achieve this. Easiest might be to replicate the same folder structure in your build package and deploy the whole package, so that it will maintain the folder structure. Can you elaborate on what you are trying to achieve here by deploying to a specific folder within wwwroot?
@bablukpik
@bablukpik Год назад
Hey there thanks for this tutorial. I just saw you didn't add Startup Command in the Azure portal like 'npx serve -s' but in my case without this command, the app doesn't run so how the app is running without it?
@RahulNath
@RahulNath Год назад
It's because this was on a windows machine. I talk about this in a follow up video on Linux ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HLhlKIIfaZs.html&ab_channel=RahulNath
@zhitomirnedyalkow1666
@zhitomirnedyalkow1666 3 года назад
Hi Rahul, Thank you for your good content! I am facing an issue with the build artifacts after the build has been completed: ##[error]Error: ENOENT: no such file or directory, stat '/home/vsts/work/1/s/src/build' I've double checked and tried different alternatives for build folder, but as suggested I've used same variable paths Any suggestions?
@zhitomirnedyalkow1666
@zhitomirnedyalkow1666 3 года назад
Hey, I just realized that the project files weren't into separate 'src' folder. Thanks!
@RahulNath
@RahulNath 3 года назад
Awesome, glad you sorted it out!
@gvsocialmedia2379
@gvsocialmedia2379 4 года назад
Hi Rahul, Great tutorial, impressive details. Just a quick question: if I use a Web App with Linux OS - what additional information should I configure to run react js web app.
@RahulNath
@RahulNath 4 года назад
Thank you for raising this question. On an Azure Web App on Linux, additionally, we might need to set up the host server using express (as an example). I will do a follow-up video on this and post a link here.
@gvsocialmedia2379
@gvsocialmedia2379 4 года назад
@@RahulNath Thank You Rahul.
@RahulNath
@RahulNath 4 года назад
@@gvsocialmedia2379 Here's a follow-up video on configuring it on Azure Web App on Linux. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HLhlKIIfaZs.html Let me know if that helps.
@ravikamesh2800
@ravikamesh2800 3 года назад
my deployment is successful , but i could only see azure default page like below, any help would be appreciated. Hey, Node developers! Your app service is up and running. Time to take the next step and deploy your code.
@RahulNath
@RahulNath 3 года назад
Are you deploying to a Linux based Azure VM? Check out this video helps solve the issue - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HLhlKIIfaZs.html
@ravikamesh2800
@ravikamesh2800 3 года назад
@@RahulNath yes ! Thank you so much for the reply ! Will go through.
@RahulNath
@RahulNath 3 года назад
@@ravikamesh2800 Cool thanks. Let know in case you have additional questions.
@ravikamesh2800
@ravikamesh2800 3 года назад
@@RahulNath it worked ❤️ , you are awesome , commented in that video as well.
@RahulNath
@RahulNath 3 года назад
@@ravikamesh2800 Thank you!
@kotibuchepalli5099
@kotibuchepalli5099 4 года назад
Very nice job Rahul, Do you have any plans to deploy same application in Azure Kubernetes ? It will really helps.
@RahulNath
@RahulNath 4 года назад
Thank you and glad you liked it. I might do a ASP NET Core with React SPA app deployed to AKS. Did you have anything specific to be convered as part of it?
@kotibuchepalli5099
@kotibuchepalli5099 4 года назад
@@RahulNath @Rahul Nath Thank you for asking, It would be nice if you can cover ingress controller and shipping logs from pods. Use case something like Front end web app hosted in a pod will communicate with api management service (api hosted in another pod) . DNS --> INGRESS1? --> SERVICE1 -->POD1(WebFE) --> DNS --> APIM --> INGRESS2? --> SERVICE2 --> POD2(API)
@RahulNath
@RahulNath 4 года назад
Thank you for your detailed reply. Not sure if this is directly related to a build/deploy pipeline for AKS. Not sure if I will be doing specific to this any time soon. However I will be doing a AKS related video soon. Thanks again for your reply!
@manaspal5
@manaspal5 9 месяцев назад
At ArchiveFiles stage I am getting error "no such file or directory: /home/vsts/work/1/s/src/build". Please help.
@RahulNath
@RahulNath 9 месяцев назад
best to check the logs and verify the path used is correct. Hope you were able to resolve.
@bismsit29
@bismsit29 4 года назад
HI Rahul, Must say its a very well articulated tutorial. But I am struggling on the deployment. I am able to finish properly everything but even though the deployment is saying all successful my react app is not running I am still getting the old MS startup page. Any idea or help please would be greatly appreciated. Please note, I tried webapp on Linux.
@RahulNath
@RahulNath 4 года назад
Thank you and glad you found it helpful. With Linux WebApp you need to set up the server yourself. Unlike the windows web app where it is hosted on IIS by default. I have a video that talks on how to set it up on a Linux Web App - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HLhlKIIfaZs.html Let know if that solves your issue.
@bismsit29
@bismsit29 4 года назад
@@RahulNath thanks Rahul. Much appreciated mate for coming back so quickly. I'll definitely give it a try and come back tomorrow. Thanks a ton again.
@RahulNath
@RahulNath 4 года назад
Anytime 👍 do let know how it goes!
@bismsit29
@bismsit29 4 года назад
@@RahulNath That has helped. Thanks a ton Rahul 👍
@RahulNath
@RahulNath 4 года назад
@@bismsit29 Cool, thanks for confirming!
@karthikchowdary5636
@karthikchowdary5636 4 года назад
Super like !!
@RahulNath
@RahulNath 4 года назад
Super Thanks!! 😀
@rojerjackson875
@rojerjackson875 2 года назад
Where does ZIP deploy actually copy the files in drop/1.zip to? Typically when I use ftp to manually copy the build directory to the server, I would copy the files into wwwroot. The release is successful but I don't see the files in wwwroot. Also when I goto the server url I get this error -> Not authorized to view. Thanks so much!
@RahulNath
@RahulNath 2 года назад
What server/cloud are you deploying to? Looks like you do not have access to view the files in there with the not authorized error. Checking the logs to make sure the files are also getting deployed is a good start. Hope you were able to resolve the issue
@usmanalii7527
@usmanalii7527 4 года назад
Can you create a video for angular app too ? Thanks
@RahulNath
@RahulNath 4 года назад
Sure, thanks for the feedback. I will do it some time - Did you have any particular questions around it?
@researchlabtools6448
@researchlabtools6448 4 года назад
Thanks save mi life
@RahulNath
@RahulNath 4 года назад
Cool thanks 😎
@arihantjain8347
@arihantjain8347 Год назад
how do you manage to keep the build folder inside the src directory, i am getting ENOENT: no such file or directory, stat '/home/vsts/work/1/s/src/build'
@arihantjain8347
@arihantjain8347 Год назад
got it my bad
@RahulNath
@RahulNath Год назад
Glad you sorted it out!
@manaspal5
@manaspal5 9 месяцев назад
Can you tell me the solution? I am facing same issue.
@RahulNath
@RahulNath 9 месяцев назад
@@manaspal5 Suggest looking at the build logs and see what directories are getting created and the one that is failing. Most like some issue in the way the directories are set up.
@jugsma6676
@jugsma6676 4 года назад
Can you tell us, what changes do we require for Linux-App Service Plan?
@RahulNath
@RahulNath 4 года назад
I have a follow up video on that ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HLhlKIIfaZs.html Let know if that helps!
@ahmadnalzam2421
@ahmadnalzam2421 10 месяцев назад
this for react.js or react native?
@rudeadyet1992
@rudeadyet1992 4 года назад
Hey Rahul, thanks for the tutorial. Just wondering if I have to set up web.config to enable azure web app service to look for index.js when using react-router?
@RahulNath
@RahulNath 4 года назад
Thanks, Sarthak for your comment and sorry for the delay in response. Yes, you are correct when using react-router you need to add a web.config fine to rewrite the server URL's. All the routes that apply to your front end must be redirected to Index.html file so that the root page will be loaded and then react-router will then handle the routes. For more details please check the related blog post here - www.rahulpnath.com/blog/create_react_app_devops/#frontend-routing Kindly let know if that helps!
@RahulNath
@RahulNath 4 года назад
Here is a follow-up video on the web.config configuration required ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-bZzjfTXODUk.html Let me know if that helps!
@rudeadyet1992
@rudeadyet1992 4 года назад
Hi Rahul Nath! Sorry for the late reply. It definitely helped, also the new dedicated tutorial made even more clear man. Thank you very much. 🙏
@vivekgaikwad3653
@vivekgaikwad3653 2 года назад
Do we need to create release pipeline everytime for deployment?
@RahulNath
@RahulNath 2 года назад
You can run an old release if that is what you want to redeploy. If you have code/variable changes etc and want to create a new release then yes you need to make a new deployment. Let me know if you have additional questions.
@mdkhan449
@mdkhan449 2 года назад
hi I have followed your video everything working but the web page didn't come up. the web page showing "the service is not available" and http error 503" please give me a solution two days I am trying but didn't get any solution. I am hardly requesting the solution for that thanks
@RahulNath
@RahulNath 2 года назад
Where are you hosting it ? Is it a windows or Linux machine ? I have a follow up video for Linux on the channel if that helps
@mdkhan449
@mdkhan449 2 года назад
hi I have hosted it on windows machine. I have created a self hosted windows agent thanks a lot for replying me thanks again
@viphet
@viphet 3 года назад
How do you do this using custom build agent (In-house build server)?
@RahulNath
@RahulNath 3 года назад
Check out this video where I deploy to a VM ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uSEx5QiuOCw.html Let know if that helps
@ssdk3051
@ssdk3051 3 года назад
Nice tutorial !!! btw, FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 2020-01-08T06:28:33.4169516Z 1: 0x8fb090 node::Abort() [/opt/hostedtoolcache/node/10.24.1/x64/bin/node] Did you come across this issue while running the build pipeline??
@RahulNath
@RahulNath 3 года назад
No haven't come across this issue. A quick search gave me this stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas Is it because of the node version?
@ssdk3051
@ssdk3051 3 года назад
@@RahulNath Thanks for reply, I think it is related to some space allocation restrictions of the instance tried "--max-old-space-size=2048" in package.json of react app , but still sometimes job fails.
@RahulNath
@RahulNath 3 года назад
@@ssdk3051 hmm haven’t come across this issue.
@ssdk3051
@ssdk3051 3 года назад
@@RahulNath Thanks for checking
@vamsikrishna2241
@vamsikrishna2241 3 года назад
Is this Build/Release Pipeline without using server (Microsoft-azure)?
@RahulNath
@RahulNath 3 года назад
Did you mean to say without using a web API? Then yes that is correct - this is a plain create react app. It still uses a server, in this case the IIS server since it is deployed to Azure Web App running on windows. For similar one using Single Page Application template check out this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-SYhufaLn51w.html
@vamsikrishna2241
@vamsikrishna2241 3 года назад
@@RahulNath without using server means if you can use any ms-azure subscriptions and resource group in this video ?
@RahulNath
@RahulNath 3 года назад
@@vamsikrishna2241 it does deploy to an azure web app already created in azure manually at around 8:00 . Check my ARM templates video if you want to learn to automate resource creation
@arjunn3974
@arjunn3974 Год назад
There is spelling mistake in line no.11. - uiSource
@RahulNath
@RahulNath Год назад
You mean in the source code here? rahulpnath.visualstudio.com/build-deploy Hope you sorted out anyways
@realthriller
@realthriller 4 года назад
Interesting. Now how to start a react dev server on azure? npm start instead of npm run build
@RahulNath
@RahulNath 4 года назад
The Azure Web App does the hosting for you, so you need to deploy the required files to that server. Hence we do the build to output the package and then host it on Azure Web App. Azure DevOps is doing the build and deploy in this case. Let know if that answers your question
@realthriller
@realthriller 4 года назад
@@RahulNath What I need to do is just run the develop environment on Azure, like we do it locally. Without building. So gow to push the code to Azure then launch "npm run develop" and get a public url for the development env. Just like what happens on Gatsby Cloud.
@RahulNath
@RahulNath 4 года назад
@@realthriller Sorry for the delayed reply, missed this comment. What are you trying to achieve here? How is it different from hosting a build output?
@Lumiden
@Lumiden 3 года назад
Is this the same for react native?
@RahulNath
@RahulNath 3 года назад
Haven't tried that Ramiro. Are you facing any issues? Overall it would be same I guess, except for any script changes that might need to be done for react native.
@anoop.225
@anoop.225 2 года назад
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
@RahulNath
@RahulNath 2 года назад
Where are you seeing this error?
@anoop.225
@anoop.225 2 года назад
@@RahulNath Error: Npm failed with return code: 1 npm install
@RahulNath
@RahulNath 2 года назад
If you have this working on your local machine, make sure you are using the correct Node version in the build pipeline too. Use should be able to set the Node version using a task.
@kuroshzamani1775
@kuroshzamani1775 4 года назад
Hey Thank you for this tutorial. I deployed my app successfully but I get permission Error (You do not have permission to view this directory or page.) as I click on Url. Any thought why I'm getting this?
@RahulNath
@RahulNath 4 года назад
Did you verify the package getting deployed to the azure? Hope is has all the expected files in it. Are you using a Web app on windows or linux?
@kuroshzamani1775
@kuroshzamani1775 4 года назад
@@RahulNath hey Rahul ;) yes I can see the app in azure portal deployed successfully. And I created one linux service plan in and chose php for stack and a windows service plan with Net core 3.1 . I'm getting the same error with both configurations!
@kuroshzamani1775
@kuroshzamani1775 4 года назад
@@RahulNath I created a stack-overflow question. here you cans see the screenshot of the error I get. stackoverflow.com/questions/61944844/deploying-react-app-with-custom-web-pack-configuration-to-azure
@RahulNath
@RahulNath 4 года назад
Sorry missed replying to this. Were you able to solve it? Does it work locally using the build output and serving it from the public folder? Looks like this is something to do with your custom configurations and not do with the pipeline itself.
@suryatejachatrathi5009
@suryatejachatrathi5009 Год назад
You do not have permission to view this directory or page. After Successfully deploying, when I open the link I'm getting above message, eventhough I'm the owner of my azure account
@vamsikrishna2241
@vamsikrishna2241 3 года назад
this is for react native or react js ?
@RahulNath
@RahulNath 3 года назад
react js
@vamsikrishna2241
@vamsikrishna2241 3 года назад
@@RahulNath Do you have any tutorial for react-native apps ?
@RahulNath
@RahulNath 3 года назад
@@vamsikrishna2241 No don't have any and not planning anything soon.
@BeLKa4444
@BeLKa4444 3 года назад
Awesome! Rahul, I`m going to use this video to publish a private website and add a reference to this video to show my appreciation. If you would like me to add more information about you - please add me on the LinkedIn (Anton V*****) and we can discuss it
@RahulNath
@RahulNath 3 года назад
Awesome thank you. Link to this video should be good enough. More details @ www.rahulpnath.com
@BeLKa4444
@BeLKa4444 3 года назад
​@@RahulNath I`ve tried to do the but for the typescript template (npx create-react-app app-name --template typescript) The CI/CD is working but nothing was deployed. Message on the website (avgustpol-react-timer.azurewebsites.net) : "Hey, Node developers! Your app service is up and running. Time to take the next step and deploy your code. " Does add typescript makes big difference? Can you suggest something in this case?
@RahulNath
@RahulNath 3 года назад
​ @Антон Looks like you are hosting on a Web App running on Linux. There are a few more settings that need to be done for that which I show here ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-HLhlKIIfaZs.html Let know if that helps.
@BeLKa4444
@BeLKa4444 3 года назад
​@@RahulNath thanks ! I will try to deploy it to the Linux But I`ve tried to do the same for the create-react-app command (exacts steps, like in your video) and still have the same page (react app deployed without content) :c Any suggestions from your side? 👉🏻👈🏻
@BeLKa4444
@BeLKa4444 3 года назад
oh, that's probably because you didn't show the process of creating the service on the porta.azure and your "workoutplan-test" is running on windows
Далее
How to design a modern CI/CD Pipeline
9:59
Просмотров 121 тыс.
The cloud is over-engineered and overpriced (no music)
14:39
React JS CI/CD with Azure Devops to Azure App Service
16:24
Deploying Azure Static Web Apps with Azure DevOps
13:44