-
-
Save matheus1002/a78e42d32ba21d7ecdb044012452abed to your computer and use it in GitHub Desktop.
Revisions
-
trgomes created this gist
Jan 5, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,35 @@ *Pré requisitos ********* => git instalado => heroku cli instalado => aplicação gerenciada pelo git ************************* #Login no heroku heroku login #Criando aplicação heroku create <nome da aplicação> Ex.: heroku create teste #Adicionando repositório remoto heroku heroku git:remote <nome da aplicação> Ex.: heroku git:remote teste #Crie um arquivo Procfile na raiz do projeto. O arquivo não tem extensão touch Procfile #Abra o arquivo e digite o seguinte conteúdo web: vendor/bin/heroku-app-apache2 public/ #Logar no heroku (aplicação web) e criar um banco de dados #Altere o arquivo .env com as credências do banco criado #Subindo aplicação git push heroku master #Executando migrations heroku run "php artisan migrate --seed" #Abrindo aplicação heroku open