Giter Site home page Giter Site logo

netlify-cra-cont-deploy-guide's Introduction

Set Up Continuous Deployment For create-react-app & netlify

Netlify has a feature where you can configure every push to the main branch on GitHub to trigger a new build/update on Netlify.

Getting Started

  • Go to GitHub and create a new public repository.
  • In your create-react-app add the new GitHub remote link.
  • Confirm your create-react-app code is now on GitHub.

IMPORTANT: Make sure your application runs locally. If it does not run locally, there is no hope of it working on deployment.

IMPORTANT: With continuous deployment, you only want working code to be on main, use branches like dev to build and confirm a working app before merging into main.

IMPORTANT: Deploy early and often. The best time to deploy is right after you run create-react-app - the less code you have written, the less work it will take to debug each deployment, in case there is an issue.

Netlify Settings

Log onto Netlify and go to Team Overview, select New site from Git.

Choose the GitHub button - this will take you to a GithHub authentication view.

Scroll down and select Configure the Netlify app on GitHub.

Choose configure to install Netfliy on your GitHub account.

Be sure to remember your GitHub password in order to move forward.

Choose which repo. Use the search bar feature, if needed.

Once selected, your view should return to the Netlify dashboard.

Keep the default settings provided and choose Deploy site button.

See the status of your deployment. Click on it to see more details.

Check the logs. It is good to get familiar with what is there. When errors occur with the build, this is where you would go to debug.

Check for the line Site is live โœจ to confirm your site is live.

Go to the Deploys tab and you can then click on the link to see your site live. You can also share this link with your friends and family!

In order to continue to update your Netlify live site:

  • On the main branch, confirm that your app works. While working on your app, be sure to work on another branch like dev and then only merge into main when your new features are working.
  • Add, commit, and push your code to main.
    git add -A
    git commit -m "New feature added"
    git push origin main
  • Give your site a few minutes to build.
  • Be sure to check the dashboard and live site to make sure everything is working right.

netlify-cra-cont-deploy-guide's People

Contributors

krafalski avatar bwreid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.