Skip to content

Instantly share code, notes, and snippets.

@aduartem
Last active May 21, 2022 19:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aduartem/ad4ee378210adab3c105810bfa4dcbfa to your computer and use it in GitHub Desktop.
Save aduartem/ad4ee378210adab3c105810bfa4dcbfa to your computer and use it in GitHub Desktop.
Heroku

Heroku

Heroku CLI

Iniciar sesión en Heroku CLI:

$ heroku login

Crear un nuevo repositorio Git

Iniciar un repositorio Git en un directorio nuevo:

$ cd my-project/
$ git init
$ heroku git:remote -a project-api-template

Repositorio Git existente

Para repositorios existentes, simplemente ejecutar lo siguiente:

$ heroku git:remote -a project-api-template

Desplegar tu aplicación

Con los siguientes comandos se realizará un commit del código y se desplegará la aplicación a Heroku usando Git.

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

Listar apps

$ heroku apps

Monitorear logs

$ heroku logs --tail --app project-api-template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment