How to Redeploy to Heroku

How to Redeploy to Heroku || CD APP FOLDER

1. git remote rm heroku

2. Delete .git folder in React App

3. git init

4. git add .

5. git commit -m "initial commit"

6. git push heroku master

7. heroku open

NOTE: You can first try to delete the app from heroku by clicking the app name, go to settings and click " Delete App " .

NOTE: You can run "yarn" to update lock file and if package-json.lock is also in the folder with yarn.lock, remove package-json.lock before deploying

Post a Comment

0 Comments