Entre
a la pagina y descarge el heroku cliente segun su S.O.
Configuraciín
de git
@prueba(master)$ ssh-keygen
-t rsa -C "usuariocuentagit@correo.com"
@prueba(master)$
git config --global user.name "maryitsv@gmail.com"
@prueba(master)$ git
config --global user.email "maryitsv@gmail.com"
Crear
carpeta del proyecto
@prueba2$ git
init
Initialized
empty Git repository in d:/pueba2/.git/
@prueba2 (master)$
git add .
@prueba2 (master)$
git status
#
On branch master
#
Initial commit
#
Changes to be committed:
#
(use "git rm --cached ..." to unstage)
#
new file: index.php
@prueba2 (master)$ git
commit -m "comentario"
[master
(root-commit) ee3e157] fi6
1
file changed, 4 insertions(+)
create
mode 100644 index.php
(Si el proyecto es de symfony podriamos utilizar la siguiente linea
@prueba2 (master)$ heroku create miproyecto
--buildpack https://github.com/CHH/heroku- buildpack-php
)
@prueba2 (master)$
heroku create
Creating
quiet-mesa-4782... done, stack is cedar
http://quiet-mesa-4782.herokuapp.com/
| git@heroku.com:quiet-mesa-4782.git
Git
remote heroku added
@prueba2 (master)$
git push heroku master
Warning:
Permanently added the RSA host key for IP address '50.19.85.156' to
the
list
of known hosts.
Permission
denied (publickey).
fatal:
Could not read from remote repository.
Please
make sure you have the correct access rights
and
the repository exists.
@$ cd
/C/Users/gaea/.ssh/
(Agregar
keys)
@~/.ssh$
heroku
keys:add id_rsa.pub
Uploading
SSH public key id_rsa.pub... done
@~/.ssh$
heroku keys:add
Found
existing public key: C:/Users/gaea/.ssh/id_rsa.pub
Uploading
SSH public key C:/Users/gaea/.ssh/id_rsa.pub... done
@~/.ssh$
cd /d/pueba2/
@ /d/prueba2 (master)$ git
push heroku master
Warning:
Permanently added the RSA host key for IP address '50.19.85.132' to
the
list
of known hosts.
......................................................................................................
----->
Discovering process types
Procfile
declares types -> web
----->
Compressing... done, 62.7MB
----->
Launching... done, v3
To
git@heroku.com:quiet-mesa-4782.git
*
[new branch] master -> master
@prueba2 (master)$ heroku
open
Opening
quiet-mesa-4782... done
@pueba2 (master)$