DEV Community

Rittwick Bhabak
Rittwick Bhabak

Posted on

Deploying React App to Netlify

Steps

  1. Login/Signup to your netlify account from your browser
  2. Go to your project directory
  3. npm run build
  4. push the code to github
  5. Install netlify-cli npm install netlify-cli -g
  6. Run netlify deploy
  7. Select Create and configure a new site
  8. Enter a site name as your choice otherwise it will create a random site name.
  9. Enter your build folder name ./build
  10. Finally run netlify deploy --prod
  11. Once it will again ask for build folder name. Then enter ./build

Top comments (0)