Let's say you want to host domains first.com and second.com.
Create folders for their files:
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| # This will work for React applications | |
| $ npm install --save gh-pages | |
| homepage - Specifies the path where the application will get hosted. | |
| The homepage in this case will be https://tushardahibhate.github.io/<Repository name> | |
| Put the following in the scripts section in the package.json file | |
| predeploy - Commands before deployment | |
| deploy- Branch and directory to deploy. |