Blog Computação
138 subscribers
4 photos
4 files
1.39K links
Receba notificação de posts do blog Mundo da Computação e dicas de Tecnologia da Informação
Download Telegram
Deploy app Laravel no Heroku

heroku login
git init
git add .
git commit -m "first commit"


echo "web: vendor/bin/heroku-php-apache2 public/" > Procfile
git add Procfile
git commit -m "Heroku Procfile"


heroku create <nome-app>

heroku buildpacks:set heroku/php

php artisan key:generate --show

heroku config:set APP_KEY = <colocar a chave gerada aqui>

git push heroku master --app <nome-app>

heroku open --app <nome-app>


No config/database.php

colocar as credencias do banco de dados conforme o SGBD MySQL ou PostgreSQL

git add config/database.php
git commit -m "update database"
git push heroku master --app <nome-app>
heroku run bash

php artisan migrate --app <nome-app>
php artisan db:seed --app <nome-app>


Feito!
Uma forma prática de descobrir o endereço real do shortlink

curl -IL link-shortlink
Plataforma de hospedagem gratuita e com deploy podendo conectar nas plataformas Git (Github, Bitbucket, Gitlab).

https://netlify.com