lifez
lifez

Reputation: 318

public_path() in Laravel 4.2 wrong on Heroku

My app (Laravel 4.2) is currently run on heroku

When i call public_path() in my controller. I got "/app".

But if i call in development (osx with php artisan serve). I got "/public"

How can i fix this i want "/public" instead of "app"

This is my paths.php

'public' => __DIR__.'/../public',

I use https://github.com/heroku/heroku-buildpack-php as a buildpack url

Upvotes: 1

Views: 486

Answers (1)

dzuelke
dzuelke

Reputation: 2645

Did you use

web: vendor/bin/heroku-php-apache2 public/

as your Procfile command to configure public/ as the document root?

Upvotes: 0

Related Questions