Skip to content

Instantly share code, notes, and snippets.

@AlexAlonsoMontero
Last active August 9, 2022 18:52
Show Gist options
  • Save AlexAlonsoMontero/fd43ef9b9b861816de8f3c1287262fd3 to your computer and use it in GitHub Desktop.
Save AlexAlonsoMontero/fd43ef9b9b861816de8f3c1287262fd3 to your computer and use it in GitHub Desktop.
Como desplegar una aplicación NodeJS en Heroku

Como desplegar una aplicación NodeJS en Heroku

heroku login
heroku git:remote -a NOMBRE DEL PROYECTO EN HEROKU

git add .
git commit -am "make it better"
git push heroku master

  • Si falla "git push heroku master" ejecutar
git push heroku HEAD:master

  • Revisión de log y conexiones en directo, ejecutamos en consola local
heroku logs -n 1000 --tail

  • El proyecto debe tener una carpeta public en la raíz si queremos desplegar el front y no es una única api, se hará en esta carpeta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment