Link to home
Start Free TrialLog in
Avatar of Eduardo Fuerte
Eduardo FuerteFlag 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.
ASKER CERTIFIED SOLUTION
Avatar of Chris Stanyon
Chris Stanyon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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)
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.
Thank you for your replies.