Seriously if you search the forum this topic has been answered probably 200 times.
https://laracasts.com/search?q=Deploy&q-where=lessons and
https://laracasts.com/discuss/channels/laravel/env-file and
also found THE GUIDE that's referred from laravel news:
https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e and another technique from stackoverflow that works a little different, but does work: http://stackoverflow.com/questions/28364496/laravel-5-remove-public-from-url
Jan 19, 2016
2
Level 1
Deploying L5.1 to production on a shared hosting
I need help in pushing my laravel app to a production server...
this the structure of my hosting site...
/home/user/
inside this folder is my laravel project, public_html and other files
i copied my public folder inside public_html... and changed the 2 lines of codes in index.php so that it will reference the correct files inside laravel app... but i can't seem to get it working...
please help...
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
*/
require __DIR__.'/../bootstrap/autoload.php';
/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
*/
$app = require_once __DIR__.'/../bootstrap/app.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
*/
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);
I get 500 error response
Please or to participate in this conversation.