Table of Contents
回复内容:
Home Backend Development PHP Tutorial 请问大家都是如何解决项目更新问题的。谢谢。

请问大家都是如何解决项目更新问题的。谢谢。

Jun 06, 2016 pm 08:22 PM
php

如题,发布后难免会有更新操作,一般我们需要更新程序文件,更新数据库结构,更新数据。

在基于框架的项目中我们还需要更新,通过composer安装的资源。

请问各位都是如何解决的? 请有经验的朋友分享下,谢谢。

  1. 如何管理版本号

  2. 如何更新程序文件

  3. 更新数据库结构

  4. 更新数据

当然yii/laravel等框架已经有了迁移工具。php文件操作也能完成程序文件的更新。但是这些都得有一定基础的人员来操作。

在面向客户的时候,大家更希望的是发布更新包。

目前想到的实现方法是

  1. 迁移文件或sql文件更新数据库

  2. 文件操作完成新版本的文件替换

但是重要的是 composer的新增或修改资源该怎么办呢?

鉴于国内的网络, 客户服务器上执行composer update 估计十有八九是出错的。

可能比较实际的办法就是,直接比对新老版本目录 制作更新包。

请有经验的朋友分享。谢谢。

回复内容:

如题,发布后难免会有更新操作,一般我们需要更新程序文件,更新数据库结构,更新数据。

在基于框架的项目中我们还需要更新,通过composer安装的资源。

请问各位都是如何解决的? 请有经验的朋友分享下,谢谢。

  1. 如何管理版本号

  2. 如何更新程序文件

  3. 更新数据库结构

  4. 更新数据

当然yii/laravel等框架已经有了迁移工具。php文件操作也能完成程序文件的更新。但是这些都得有一定基础的人员来操作。

在面向客户的时候,大家更希望的是发布更新包。

目前想到的实现方法是

  1. 迁移文件或sql文件更新数据库

  2. 文件操作完成新版本的文件替换

但是重要的是 composer的新增或修改资源该怎么办呢?

鉴于国内的网络, 客户服务器上执行composer update 估计十有八九是出错的。

可能比较实际的办法就是,直接比对新老版本目录 制作更新包。

请有经验的朋友分享。谢谢。

以前有个项目借用wp的升级方式,基本上就是把升级包放在自己服务器上,然后在网站后台升级,把服务器上代码下载过来,对比更新,数据库也可以命令行执行。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

CakePHP Project Configuration CakePHP Project Configuration Sep 10, 2024 pm 05:25 PM

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

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian Dec 24, 2024 pm 04:42 PM

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

CakePHP Date and Time CakePHP Date and Time Sep 10, 2024 pm 05:27 PM

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

CakePHP File upload CakePHP File upload Sep 10, 2024 pm 05:27 PM

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

CakePHP Routing CakePHP Routing Sep 10, 2024 pm 05:25 PM

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

Discuss CakePHP Discuss CakePHP Sep 10, 2024 pm 05:28 PM

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

How To Set Up Visual Studio Code (VS Code) for PHP Development How To Set Up Visual Studio Code (VS Code) for PHP Development Dec 20, 2024 am 11:31 AM

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

CakePHP Creating Validators CakePHP Creating Validators Sep 10, 2024 pm 05:26 PM

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

See all articles