dougan1465 2017-03-05 22:19
浏览 44

升级Laravel应用程序

The next Laravel release is 5.5 which arrives this July. Now let's say I make a policy where I'll upgrade my web app every year in July/August to the latest version.

During that year of running the web app what should I do to keep it up to date with security fixes and bug fixes?

For example let's say I deploy on version 5.5.2 and by December there's a 5.5.8 what's the best way to keep the minor changes stay up to date without jeopardising the web apps availability?

I asusume you would need something to run commands like composer update Every so often etc. But what would the exact commands be and can they be run using Laravels scheduled so it is cross platform - if so, how?

Thanks!

  • 写回答

1条回答 默认 最新

  • doujia7779 2017-03-05 23:00
    关注

    I will not run a composer update command as a cronjob. Packages can change and that can deprecate functions or change the way how they works: what will you do in this situation? Laravel itself has a great documentation (ex https://laravel.com/docs/5.4/upgrade) showing what will brake down of you upgrade from one version to another one.

    The better approach is having a development branch where test the upgrade, fix pieces of code and then deploy everything online. Just in this way you will be comfortable not to have any surprise...

    评论

报告相同问题?

悬赏问题

  • ¥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曲线生成时有凸起