Locally:
Initial Setup:
About ‘LF will be replaced by CRLF’ warning during add, Info: https://stackoverflow.com/a/63430105/7846238 Solution: git config --global core.autocrlf false
Now, whenever you need to push changes on the main branch,
Create a dev branch to save development changes,
Now, whenever you need to push changes on the dev branch,
Merge changes from dev to main whenever changes are final for production,
Netlify: https://app.netlify.com/
Login using GitHub
Click on ‘Import from Git’
Connect to Git provider > Github
If the desired repository is not shown, click on ‘Configure the Netlify app on GitHub’
Repository Access > All Repository
Select the repository
Click on ‘Deploy site’ Note: Deploying Process will take 2-5 minutes to be active on Netlify. Error: Check the log if you get an error > apply changes to the codebase > push them on ‘main’ branch.
To set Environment Variable:
To change domain name:
404 Page Not Found Error:
Vercel: https://vercel.com/login
Login with GitHub
Click on “Add New” > Project
Select the repository
Click on Deploy Note: Deploying Process will take 2-5 minutes to be active on Vercel. Error: Check the log if you get an error > apply changes to the codebase > push them on ‘main’ branch.
To set Environment Variable:
To change domain name:
Locally
On Render,