DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Auto Deploy reason-react projects on Netlify
Bodhish Thomas
Bodhish Thomas

Posted on

Auto Deploy reason-react projects on Netlify

Auto deploy your Reason React project from Github to Netlify. When you push to Git, Netlify will auto deploy your project.

Reason with Netlify

If you don’t have a project, you can get the basic setup instruction in reason react official documentation.

Steps:

1. Login/sign-up to https://netlify.com

2. Click on β€œNew site from Git” button

Netlify Dashboard

3. Choose the Git provider where your site’s source code is hosted

Create Site

4. Choose the repository you want to link to your site on Netlify.

Create a netlify site

5. Choose the branch to deploy and give the build commands and publish directory.

Deploy

Build command

npm run clean && npm run build && npm run webpack:production
Enter fullscreen mode Exit fullscreen mode

Publish directory

build
Enter fullscreen mode Exit fullscreen mode

Fill-in the details and click β€œDeploy Site” button.

Your site will get deployed in 5 mins, All other commits you make to the branch you select will get auto deployed to Netlify :D

Top comments (0)

Become a Moderator Do you want us to help make DEV a better place?

Fill out this survey and help us by becoming a tag moderator here at DEV.