在计算机之间移动Laravel项目 [英] moving Laravel project between computers

查看:131
本文介绍了在计算机之间移动Laravel项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在计算机上的laravel5项目中工作,但现在我想继续在另一个项目上工作,但不知道如何:(

I have been working on a laravel5 project on a computer , but now I want to continue on an other, but don't know how :(

我正在使用wampserver,项目位于"www"文件夹中,这是我在尝试打开项目时遇到的错误:"Internal Server Error

I'm using wampserver and the project is in the "www" folder, this is the error I'm getting when trying to open the project: " Internal Server Error

服务器遇到内部错误或配置错误,无法完成您的请求"

The server encountered an internal error or misconfiguration and was unable to complete your request"

推荐答案

您的错误消息非常模糊,因此很难查明原因.我假设您只是复制粘贴了所有项目文件

Your error message is very vague, so it is hard to pinpoint the cause. I assume you just copy pasted all of the project files

尝试以下步骤:

  1. 确保您复制了所有项目文件,包括隐藏的项目文件(.env).
  2. http://laravel.com/docs/
  3. 中那样准备目标计算机.
  4. 检查php.ini中是否具有所有必需的PHP扩展,如上面的链接要求所示.另外,请注意您的PHP版本!
  5. 安装作曲者 https://getcomposer.org/doc/00-intro.md
  6. 复制后,转到目标文件夹并运行composer install.
  7. 运行php artisan key:从命令行生成.

  1. Make sure you copy all of the project files including the hidden ones(.env).
  2. Prepare your destination computer as in http://laravel.com/docs/
  3. Check you have all the necessary PHP extensions available in php.ini as in above link requirements. Also, watch your PHP version!
  4. Install composer https://getcomposer.org/doc/00-intro.md
  5. When copied, go to your destination folder and run composer install.
  6. Run php artisan key:generate from the command line.

运行php artisan缓存:从命令行清除

Run php artisan cache:clear from command line

http://php.net/manual/en/install.windows.commandline.php

  • 确保您的网络服务器正在从项目/公用文件夹中提供页面.

  • Make sure your webserver is serving pages from project/public folder.

    如果laravel失败,请检查日志文件以查看原因

    If laravel is failing, check the log file to see the cause

    your_project/storage/logs/laravel.log
    

    这篇关于在计算机之间移动Laravel项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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