Here is a question about Heroku and its version control system.
Far from being an expert in VCS, I may be asking something quite basic. In that case just forgive me. Here is the issue.
When I go and edit a file in my project and save it, say index.js for instance. I can then run the following commands in the terminal (as I have learned to do it in some tutorial):
$ git add . && git commit -m "my-nice-project" && git push heroku master
And that does the job of updating the app on the server as I expect.
If I repeat the same comment again:
$ git add . && git commit -m "my-nice-project" && git push heroku master
I get a message saying:
On branch master
Your branch is up-to-date with 'heroku/master'.
nothing to commit, working tree clean
$
Here also I get what I expect, since I did not touch anything on the project.
But what follows is not a situation I expect, and I'd be glad if someone could help me clarify things up.
I run this:
$ npm outdated
to check for old packages; then I run:
$ npm update
to update old packages; and I can see with my eyes that something has changed in the tree structure of the project.
Now here when I run:
$ git add . && git commit -m "my-nice-project" && git push heroku master
I still get a message saying:
On branch master
Your branch is up-to-date with 'heroku/master'.
nothing to commit, working tree clean
$
Why is that? Things have changed locally, I would expect an update of the app on the server. What am I missing?