请问大家都是如何解决项目更新问题的。谢谢。
如题,发布后难免会有更新操作,一般我们需要更新程序文件,更新数据库结构,更新数据。
在基于框架的项目中我们还需要更新,通过composer安装的资源。
请问各位都是如何解决的? 请有经验的朋友分享下,谢谢。
如何管理版本号
如何更新程序文件
更新数据库结构
更新数据
当然yii/laravel等框架已经有了迁移工具。php文件操作也能完成程序文件的更新。但是这些都得有一定基础的人员来操作。
在面向客户的时候,大家更希望的是发布更新包。
目前想到的实现方法是
迁移文件或sql文件更新数据库
文件操作完成新版本的文件替换
但是重要的是 composer的新增或修改资源该怎么办呢?
鉴于国内的网络, 客户服务器上执行composer update 估计十有八九是出错的。
可能比较实际的办法就是,直接比对新老版本目录 制作更新包。
请有经验的朋友分享。谢谢。
回复内容:
如题,发布后难免会有更新操作,一般我们需要更新程序文件,更新数据库结构,更新数据。
在基于框架的项目中我们还需要更新,通过composer安装的资源。
请问各位都是如何解决的? 请有经验的朋友分享下,谢谢。
如何管理版本号
如何更新程序文件
更新数据库结构
更新数据
当然yii/laravel等框架已经有了迁移工具。php文件操作也能完成程序文件的更新。但是这些都得有一定基础的人员来操作。
在面向客户的时候,大家更希望的是发布更新包。
目前想到的实现方法是
迁移文件或sql文件更新数据库
文件操作完成新版本的文件替换
但是重要的是 composer的新增或修改资源该怎么办呢?
鉴于国内的网络, 客户服务器上执行composer update 估计十有八九是出错的。
可能比较实际的办法就是,直接比对新老版本目录 制作更新包。
请有经验的朋友分享。谢谢。
以前有个项目借用wp的升级方式,基本上就是把升级包放在自己服务器上,然后在网站后台升级,把服务器上代码下载过来,对比更新,数据库也可以命令行执行。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
