Member-only story
CD using Netlify & Bitbucket
1 min readFeb 13, 2021
This is a quick summary of how to deploy your project to Netlify. Just mentioning the steps due to time constraints.
- Go to https://www.netlify.com/ and create an account.
- Once inside, connect your account using bitbucket. Grant access and select the repository you want to be deployed. Whenever you push to your master branch a webhook is triggered and Netlify builds and deploys it that commit.
- Modify the build command. It will show yarn initially. Use the below command if you are using ReactJs with npm.
- CI= npm run build. // No spaces after CI
- Trigger a deployment from the Site overview tab.
- Go to domain settings if you want to use a custom name. For free accounts, it will come as *.netlify.app
- Code. Commit and then Wait for it to deploy. On the deploy tab, you can see the logs if anything failed.
If you need more customization you can use Zapier at https://zapier.com/.
Hope it works. Enjoy.