无需命令行访问即可设置Laravel 5应用程序 [英] Setup Laravel 5 Application without command-line access

查看:107
本文介绍了无需命令行访问即可设置Laravel 5应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在没有命令行访问的情况下设置Laravel 5 Application?

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

使用Laravel 5执行以下命令是常见的任务:

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

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

考虑没有SSH访问权限的非专用服务器,如何在该环境中设置应用程序?

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

推荐答案

是的.

简而言之,当您在本地环境上开发Laravel时,您需要使用FTP客户端/软件(如FileZilla FTP客户端)将内容上传到主机提供商.

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. 确保对文件夹Storage具有写权限.
  2. 应该上传所有Laravel文件夹,但域应指向Public文件夹.
  3. 您需要在项目中配置主机MySQL数据库信息.
  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.

它应该工作,这里剩下的唯一挑战是确保您找到允许对1和2进行修改的主机提供程序.

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

这篇关于无需命令行访问即可设置Laravel 5应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆