Last active
November 28, 2017 10:01
-
-
Save fernandodebrando/92c4b3c365994a981fc24007f8b4ebf3 to your computer and use it in GitHub Desktop.
Hospedando aplicação PHP no Heroku (arquivos utilizados neste tutorial)
This file contains 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 characters
{} |
This file contains 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 characters
<?php | |
echo '<h2>Hospedando seu projeto PHP no Heroku</h2>'; | |
mysqli_connect("host", "user", "password", "db") or die(mysqli_error()); | |
echo "Connected to MySQL<br />"; | |
phpinfo(); | |
?> |
This file contains 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 characters
web: vendor/bin/heroku-php-apache2 public/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
O Heroku é ótimo, mas só suporta infraestrutura em nuvem como a AWS. Para aqueles que estão à procura de vps, eu recomendaria Cloudways php hosting (https://www.cloudways.com/en/php-cloud-hosting.php) para isso. É semelhante ao Heroku, mas a plataforma é muito mais fácil de usar e suporta mais infraestruturas, incluindo Aws, Linode, DO e outros.