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
Moni
MoniOP14mo ago
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.
Jochem
Jochem14mo ago
are you pushing your deployed app to github? npm run build won't do that for you
Moni
MoniOP14mo ago
i 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
Jochem
Jochem14mo ago
You say "use npm run build to redeploy" but that's not what npm run build does
Moni
MoniOP14mo ago
my commits were made so what should i do so that changes will be made to the website
Jochem
Jochem14mo ago
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
Jochem
Jochem14mo ago
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.
Moni
MoniOP14mo ago
i have used these commands and it worked"npm install npm run predeploy npm run deploy
Want results from more Discord servers?
Add your server