Upload project from laravel to PROPIO server

0

Good morning, my problem is this, I bought a host, in which I do not have ssh, and I have uploaded my entire project to the root, with public, vendor, app and everything, I have configured the file index, but I get the message: Whoops, looks like something went wrong. when I access the public folder, and the truth is I'm a little frustrated, because everything I find on the internet is to upload it to a shared host, and it has not really helped me, someone who knows how to do this? and that you can explain it to me step by step?

My url would be webapp.es/public(aqui is all public without more, but the log tells me that you can not find the correct route.

Thanks in advance!

    
asked by Peisou 29.12.2017 в 11:39
source

1 answer

-2

From my experience (I'm a Systems Engineer and I'm dedicated to developing Systems / Applications in Laravel), I can say that Laravel is not designed to be used in a shared hosting. Of course, there are exceptions with some suppliers of shared hostings, which work very well, but they are still exceptions, and will always work in a limited way.

For example, if you want to use the functionality of scheduled tasks (scheduler) that provides the framework, it is necessary to have an administrator account (root) of the hired server, and in the case of a shared hosting, this account is not accessible.

On the other hand, I can happen that they want to execute some linux commands, like doing a dump of the database (mysqldump), when clicking on a button, for example. But, some hosting providers block certain php functions (such as exec) in the php.ini configuration of their shared hostings, so linux commands can not be executed.

Another facility granted by Laravel is a series of commands, which allow managing the maintenance of the application / system, in a very simple way, and these commands require SSH access to be executed.

It is very difficult to deploy a Laravel project, in a hosting that does not have SSH access, since it is necessary to run some basic command, such as cache cleaning: php artisan config:cache or php artisan cache:clear , among others (when working locally , configuration files that are left in the cache are generated, with urls referring to the local environment, but when you execute a command that I mentioned earlier, these configuration files are refreshed, and the urls are updated, taking as reference, the hosting to which the project was uploaded).

If you do not want to spend time and energy, my recommendation is to switch to a Vps or a Cloud, and if it is necessary to use a shared hosting, make sure at least that you have SSH access.

Greetings

    
answered by 29.12.2017 в 13:56