I think this detail article can help you out: http://driesvints.com/blog/laravel-4-on-a-shared-host
Its recommended to keep public
as the only web-accessible directory.
I have done that. Put all files outside public_html and public files inside public_hatml... changed public directory parameter to public_html. In my localhost everything is working (not everything, the Assets are not being loaded, but thats not my main problem), in the server always the class Site not found. Already tried other servers, always the same problem...
in my searchs i found this. http://stackoverflow.com/questions/20705622/laravel-4-class-not-found-after-doployment-to-production/23808948#23808948
it's exactly my problem, only I can't solve it because I am trying a shared host and i can't run composer install on server. I have developed on a windows server and I am trying to publish on a linux server.
How can I do this?
grrrrrr.... sorry to bother you guys, but I guess it was my mistake in this line of code public function site() { return $this->belongsTo('site'); }
there is no class named "site", but there is one named "Site".
Apparently windows doesn't bother about that but linux does :s sorry again
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community