I know that Heroku supports many different environments in the Cedar stack including PHP.
The tipical folder structure of a Laravel 4 app is the following:
app/
bootstrap/
public/
packages/
index.php
vendor/
composer.json
phpunit.xml
Note 2 things:
The main index.php file is not located in the root, is under the public folder.
There is a composer.json file and Heroku needs to install all the project dependencies automatically just like gems in Ruby apps.
So my question is:
Is there a way to deploy this kind of apps on Heroku ??
Any help appreciated.
Deploying to Heroku After you've done that, you're going to create an application instance on Heroku, configure some Laravel environment variables, and then simply git push to deploy your code!
You'll need to use a custom buildpack to set the document root and executes a script that integrates composer too. In Heroku's Buidlpack you would need to update the bin/compile script to handle composer and conf/httpd.conf to set the document root. Also, Heroku's buildpack does not have mcrypt compiled in, so Laravel 4 won't work with that buildpack. I've included many updates that include mcrypt, composer, and custom document roots in my branch of the buildpack.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With