dongqian1893 2014-09-25 22:27
浏览 116
已采纳

Laravel Homestead文件上传性能问题

I am having a wierd problem with Laravel Homestead. After following all the steps(with success) in Laravel website to configure Homestead and setting up a small project I'm facing the following problem:

  • When uploading an image with intervention\image package it takes forever, and doesn't matter if it is a small or a big image

Already tried a different config using Vaprobash with Nginx too and the upload is super fast. Is anyone out there facing the same problem or have some solution for me? (Going crazy here)

  • 写回答

1条回答 默认 最新

  • duanliang1999 2014-09-26 05:26
    关注

    If the upload folder is a shared folder on your host, then you may want to enable nfs if you haven't already. You can do that by changing the lines in scripts/homestead.rb about shared folder to this (note the `type: "nfs"' has been added):

    # Register All Of The Configured Shared Folders
    settings["folders"].each do |folder|
      config.vm.synced_folder folder["map"], folder["to"], type: "nfs"
    end
    

    More info can be found here: https://docs.vagrantup.com/v2/synced-folders/nfs.html.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何在炒股软件中,爬到我想看的日k线
  • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
  • ¥15 seatunnel 怎么配置Elasticsearch
  • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
  • ¥15 (标签-MATLAB|关键词-多址)
  • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
  • ¥500 52810做蓝牙接受端
  • ¥15 基于PLC的三轴机械手程序
  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起