Deploying Lightning Web Components
In this post ,we will learn how to deploy lightning web components.
we will deploy the testcomponent that we created in the previous post.
Before deployment it is essential to authorise to an org on which we are gonna deploy the web component.For that follow below steps:
This post assumes that you have followed my previous post and have a component ready to deploy.
1.Press Cntrl+Shift+P
2.Select 'Authorise an Org' as shown in below image.
we will deploy the testcomponent that we created in the previous post.
Before deployment it is essential to authorise to an org on which we are gonna deploy the web component.For that follow below steps:
This post assumes that you have followed my previous post and have a component ready to deploy.
1.Press Cntrl+Shift+P
2.Select 'Authorise an Org' as shown in below image.
3.After you click on that,you will be asked to select the url for logging into the org.Here I have selected login.salesforce.com.
4.Then you will be asked to give alias for the org.If you wish to give alias ,give it or else press enter.
5.After that ,a new tab will open in the browser asking for login info.
6.After you have logged in , you will be asked whether or not to allow access to the org.Click on Allow Access.
7.Now observe the OUTPUT panel in VScode you will see,
This means you have successfully authorised the org.
8.Now when you right click on the component,you can see option to deploy the component.
9.Select Deploy Source to Org.
Now if you observe OUTPUT panel you can see the files that have been deployed successfully.
voila! you have successfully deployed your first lightning web component.
Now if you wanna see if the component has been deployed, you can see it in setup.
1.Goto Setup
2.Search for lightning components
3.There you will find the list of components that you have deployed.






Comments
Post a Comment