将laravel项目移至新服务器 [英] Move laravel project to new server

查看:78
本文介绍了将laravel项目移至新服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我在一台服务器上有一个现有的laravel(v4)项目.现在,我想将其上传到新服务器.谁能解释一下如何执行此步骤?


I have an existing laravel (v4) project in one server. Now I want to upload it to a new server. Can anyone explain the steps how to do this?

我在Laravel非常陌生.到目前为止,这是我所做的:
我已将所有文件下载到我的计算机上,然后上传到新的cPanel服务器.创建了mysql数据库并导入了表.

I am very new in Laravel. This is what I have done so far:
I have downloaded all the files to my machine and then uploaded to my new cPanel server. Created mysql database and imported tables.

推荐答案

请遵循以下步骤:

  1. 通过新面板的phpmyadmin创建一个新数据库
  2. 将您以前的数据库导入到新数据库
  3. 在app/config/database.php中,将您的数据配置更改为新的数据库配置
  4. 只需将您的所有文件和文件夹转移到新的cpanel

如果路径未更改,则您的网站应该可以正常工作.

If the paths are not changed then your website should work fine.

这篇关于将laravel项目移至新服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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