So I checked out Heroku yesterday after the official support for PHP announcement. I pushed up a basic install of Laravel 4.1 to a new free account. However, if you just create your repo, set up Laravel, and do a git push origin master
, your webroot will be the project root, not /public. After reading about “buildpacks”, etc., I found out that all you need to do is create an empty file in the project root named “Procfile” and add:web: vendor/bin/heroku-php-apache2 public
to it (assuming you are using Apache). I saw something else showing custom composer.json settings for heroku that defined the webroot, but I couldn’t get that to work.
May 1, 2014
Heroku/PHP Quick Tip #1 – Webroot
Search
Popular Categories
Recent Posts
-
December 7, 2015
Quick and Dirty PHP 7.0 set up on Ubuntu 14.04 with APCu -
May 20, 2015
Laravel Custom Logging -
May 19, 2015
Site re-built using Laravel 5.1-dev -
January 9, 2015
Using the Laravel Homestead "serve" command with Oh-My-Zsh -
November 6, 2014
Using Laravel's Artisan with Git for Deployment.