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.

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

报告相同问题?

悬赏问题

  • ¥50 三种调度算法报错 有实例
  • ¥15 关于#python#的问题,请各位专家解答!
  • ¥200 询问:python实现大地主题正反算的程序设计,有偿
  • ¥15 smptlib使用465端口发送邮件失败
  • ¥200 总是报错,能帮助用python实现程序实现高斯正反算吗?有偿
  • ¥15 对于squad数据集的基于bert模型的微调
  • ¥15 为什么我运行这个网络会出现以下报错?CRNN神经网络
  • ¥20 steam下载游戏占用内存
  • ¥15 CST保存项目时失败
  • ¥20 java在应用程序里获取不到扬声器设备