PHP 11 - Laravel Blog (Deployment)

By Sheldon L Published at 2020-09-11 Updated at 2020-09-11


Deploy With Forge / Ploi

Getting Started with Forge / Ploi

Database

With Forge, No Need to Set mysqld, Only Need to Connect

ssh forge@45.79.68.154
mysql -uforge -p # password is in the evironment setting in site details

> use databaseName;
> select database();
> show tables;
cd siteLocation
php artisan migrate

Remote Connect

Add Admin Account

php artisan tinker
$admin = new App\Admin
$admin->name = 'Admin'
$admin->email = '***@***'
$admin->password = Hash::make('******')
$admin->save()
exit
php artisan storage:link

.env

LOCALE = "cn"

APPNAME = "Land View"

SSL for Customed Domain