Setup Laravel 5 Application without command-line access

给你一囗甜甜゛ 提交于 2019-12-11 01:29:06

问题


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:


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.

In addition to my answer, few links for reading:

  • http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/
  • https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e#.vv4wgkdrw
  • Deploy Laravel 5 using only FTP in a shared hosting


来源:https://stackoverflow.com/questions/36405659/setup-laravel-5-application-without-command-line-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!