Redeploy react app
i am using npm run build to redeploy my app but my link of the website is not updating on github.
8 Replies
repository link"https://github.com/TalhaMustafa1/easyBankLandingPage.git
GitHub
GitHub - TalhaMustafa1/easyBankLandingPage: landing page created us...
landing page created using react js. Contribute to TalhaMustafa1/easyBankLandingPage development by creating an account on GitHub.
are you pushing your deployed app to github?
npm run build
won't do that for youi have already deployed it on github i have made new commits . Commits was made successfully but when i use npm run build to redeploy it so that changes will be live it is not working
You say "use npm run build to redeploy" but that's not what npm run build does
my commits were made so what should i do so that changes will be made to the website
there's a whole document about deployment on the CRApp documentation, including something specific for github pages https://create-react-app.dev/docs/deployment/#github-pages
make sure to read what comes before that too though https://create-react-app.dev/docs/deployment/
Deployment | Create React App
npm run build creates a build directory with a production build of your app. Set up your favorite HTTP server so that a visitor to your site is served index.html, and requests to static paths like /static/js/main..js are served with the contents of the /static/js/main..js file. For more information see the production build section.
i have used these commands and it worked"npm install
npm run predeploy
npm run deploy