Just had 2 goes at creating an app on Heroku.
Note the app works fine on my cloud 9 workspace.
Connect via Git from Heroku’s website but that just says:
Heroku | Welcome to your new app!
Refer to the documentation if you need help deploying.
Using the official instructions at
Which gives me a “Chat Example”
Anyone got any clues?
package.json was missing this:
"scripts": { "start": "node express.js" },
I seem to have muddled through by editing package.json on GitHub.
I failed to push the changes from C9 after doing …
git add --all
git push
git push heroku master
^^ something wrong here???
jenovs
November 23, 2016, 2:25am
3
Looks like git commit
is missing.
1 Like
At what step should that go? At the end?
jenovs
November 23, 2016, 3:24pm
5
git add --all
git commit -m 'Here you write commit message'
git push
git push heroku
1 Like
I think you missed a few stages out.
During the Git upload you may need to add .env and .gitignore
My notes now (from command line / cloud 9 Bash):
heroku login
heroku create (application-name-of-choice)
git push heroku master
optional - start the app… heroku ps:scale web=1