REPLACE: /../
WITH: '.$RemoteDir.'
TO: $RemoteDir
Example:
if (file_exists($maintenance = __DIR__.$RemoteDir.'storage/framework/maintenance.php')) {
require $maintenance;
}
in your ftp client navigate to the private folder:
create a new folder called "laravel-WHATEVER"
Upload all the laravel folders
app
bootstrap
config
database
lang
resources
routes
storage
tests
vendor
.editorconfig
.env
.env.example
.gitattributes
.gitignore
artisan
composer.json
composer.lock
package.json
phpunit.xml
README.md
tailwind.config.js
vite.config.js
CLOUDFLARE:
login to cloudflare and select DNS for the domain (example.com)
add a record (example: secured.example.com)
Type: A
Name: subdomain (example: secured)
Target: the domain created from Hestia control panel : ip address 455.500.968.299
TTL: Auto
NOTE: if you have Full (strict) on your domain, you will have to apply a rule to bypass the full ttl and select flexible if needed.
CONFIGURE A RULE:
Name: whatever
(0) Custom Expression
Field: Hostname
Operator: equals
Value: secured.example.com
Then: SSL
Encryption mode: Flexible
[Save]
DATABASE MIGRATION:
login to phpmyadmin in localhost and export the tables
login to remote phpmyadmin and import the tables
Edit .env from WinSCP
Change /private/laravel/.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_inertia_vue_crud
DB_USERNAME=root
DB_PASSWORD=