Setup Laravel 5 Application without command-line a

2019-07-09 11:07发布

Is it possible to Setup Laravel 5 Application without command-line access?

It's a common task do these commands with Laravel 5:

composer install
php artisan migrate
php artisan db:seed
gulp
[...]

Consider a non-dedicated server without SSH access, how can I setup the application in that environment?

1条回答
Melony?
2楼-- · 2019-07-09 11:37

Yes it is possible.

Briefly, when you have developed your Laravel on local environment you need to use FTP client/software (Like FileZilla FTP client) to upload the content to your host provider.

Before that you need to ensure some technical details so it can work

  1. Ensure have write permission to folder Storage.
  2. All Laravel folder should be upload, but the domain should point to Public folder.
  3. You need to configure your host MySQL database information in your project.

And it should work, the only challenge left here is to ensure you find host providers that allow make modifications on 1 and 2.

I suggest you to try it before distributing it to your customers and make a step-by-step guideline, as there is risk for unseen scenarios.

enter image description here

In addition to my answer, few links for reading:

查看更多
登录 后发表回答