PrettyCode
PrettyCode

Reputation: 27

Changes not showing up in NodeJs/ReactJs apllication running on Heroku?

I have made changes to some css and js file in my Node-React apllication which is deployed on Heroku. But the changes are not showing up when I git add . the project on heroku. ALthough the changes are not coming up when I run the project locally.

Any help would be appreciated on what could be the possible cause on the changes not getting deployed?

Upvotes: 0

Views: 215

Answers (1)

Taylor Krusen
Taylor Krusen

Reputation: 1033

You need a few more commands in your deployment workflow.

The git add . command is putting your local changes into staging.
You also need to run git commit -m 'your commit message' in order to commit those local changes to your local git repository.
Next, you need to run git push to push your local repository to the remote repository it is linked with.

Effective use of git is one of the most useful things you can teach yourself as a developer. It will enable you to contribute effectively to a team when the time comes. Here's a good starter article: Basic Git With Examples.

Upvotes: 1

Related Questions