Steps to Install the Application to a Remote Server
- Decompress and upload all files to target directory gregorytest.rar.
- Import the database gregorydata.sql
- Copy all files inside
/public
folder into the default project folder. - Remove folder
/public
. - Edit file
./index.php
, add this lineuse Illuminate\Contracts\Http\Kernel;
to the topmost line.On the same file, look for linerequire __DIR__.'/../bootstrap/autoload.php';
and replace it withrequire __DIR__."/bootstrap/autoload.php";
Also, line$app = require_once __DIR__.'/../bootstrap/app.php';
with$app = require_once __DIR__."/bootstrap/app.php";
Lastly line$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
with$kernel = $app->make(Kernel::class);
- Edit file
/config/bootstrap.php
and locate line'url' => env('APP_URL', 'http://localhost'),
and replace it with'url' => env('APP_URL', 'http://[you_project_folder]/'),
- Finally, .env file needs editing alsoAPP_ENV=localAPP_DEBUG=trueAPP_KEY=base64:eegf6eODvThzJiyXWMp3Bh7OLUbgqOJhQ16kZcXr9qw=APP_URL=http://[project_directory]DB_CONNECTION=mysqlDB_HOST=sql6.freemysqlhosting.netDB_PORT=3306DB_DATABASE=sql6135311DB_USERNAME=sql6135311DB_PASSWORD=3te5D9vhTU
- Enjoy!
No comments:
Post a Comment