Avatar of Eduardo Fuerte
Eduardo Fuerte
Flag for Brazil asked on

Could you point the better strategy to deploy a Laravel project at host ?

Hi Experts

Could you point the better strategy to deploy a Laravel project at host ?

My hosting provider offers cPanel.

(I intend to do that to my own site)

Another option could be FTP - but I guess to transfer a complete Laravel project (with vendor folder) would be cumbesome to be done that way.

Thanks in advance.
LaravelFTPPHP

Avatar of undefined
Last Comment
Eduardo Fuerte

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Chris Stanyon

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Eduardo Fuerte

ASKER
Hi Chris


I'm better studying your reply.

(it's not the company's site we are interacting last questions, just my one)
lenamtl

Hi,

Laravel or regular website I would use the same strategy.

Have a list of your actual PHP version, settings and ini file to compare with the one from the hosting company.

From Cpanel create the DB User and DB and import the data.
From Cpanel set PHP version, it is better to set it, If you keep the default value, when they will update the server it may break your code.
From Cpanel Install HTTPS.
Using FTP upoad your files. (some files and directories may need Chmod adjustment to work fine espacially upload dir and config file)
Test your pages and backend form. (it may required some PHP adjustment, ask your hosting company if you can have your own PHP.ini settings)

I usually remove everything is not required from the vendor directory but you know these days hosting package usually have enough space to keep it like it is.
Eduardo Fuerte

ASKER
Thank you for your replies.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes