Skip to content

Instantly share code, notes, and snippets.

@fernandodebrando
Last active November 28, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandodebrando/92c4b3c365994a981fc24007f8b4ebf3 to your computer and use it in GitHub Desktop.
Save fernandodebrando/92c4b3c365994a981fc24007f8b4ebf3 to your computer and use it in GitHub Desktop.
Hospedando aplicação PHP no Heroku (arquivos utilizados neste tutorial)
<?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();
?>
web: vendor/bin/heroku-php-apache2 public/
@azazqadir
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment