CN113360246B - Project automatic deployment method combined with contentful - Google Patents

Project automatic deployment method combined with contentful Download PDF

Info

Publication number
CN113360246B
CN113360246B CN202110618200.3A CN202110618200A CN113360246B CN 113360246 B CN113360246 B CN 113360246B CN 202110618200 A CN202110618200 A CN 202110618200A CN 113360246 B CN113360246 B CN 113360246B
Authority
CN
China
Prior art keywords
contentful
construction
docker
script
article
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110618200.3A
Other languages
Chinese (zh)
Other versions
CN113360246A (en
Inventor
陈家宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ruiyun Technology Co ltd
Original Assignee
Shenzhen Rayvision Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Rayvision Technology Co ltd filed Critical Shenzhen Rayvision Technology Co ltd
Priority to CN202110618200.3A priority Critical patent/CN113360246B/en
Publication of CN113360246A publication Critical patent/CN113360246A/en
Application granted granted Critical
Publication of CN113360246B publication Critical patent/CN113360246B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a project automatic deployment method combined with contentful, which comprises the following steps: s1: deploying a node service in a construction server, and monitoring whether a contentful issues an article; if the article released by the contentful is monitored, the step S2 is entered, and if the article released by the contentful is not monitored, the monitoring is continued; s2: the construction server triggers a construction script through hook service; s3: the construction server starts a docker to independently construct a script; constructing docker according to articles issued by contentful; s4: and after the docker completes the construction of the script, the construction server transmits the file to the production server by using the rsync instruction. The invention directly and automatically triggers the project construction and deployment after the content full issues the article, improves the efficiency, and can check the state and the log through the webpage, thereby being convenient for checking and analyzing. The automatic deployment construction has higher customizability compared with the gitlab configuration.

Description

Project automatic deployment method combined with contentful
Technical Field
The invention relates to the technical field of project automatic construction and deployment, in particular to a project automatic deployment method combined with contentful.
Background
In the existing automatic construction in the market, a deployment project is based on the configuration provided by gitlab, and the construction and deployment of the project are triggered manually, by code updating or at regular time. Manual triggering requires that a user contacts an administrator after publishing an article or triggers and constructs a deployment project by using a gitlab, which wastes labor and time; and a timed publication may result in a delay in publication of the article.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the project automatic deployment method combined with the contentful is provided, project deployment is automatically completed, user application is facilitated, and efficiency is improved.
The technical scheme of the invention is as follows: a project automatic deployment method combined with contentful is provided, which comprises the following steps;
s1: deploying a node service in a construction server, and monitoring whether a contentful issues an article; if the article released by the contentful is monitored, the step S2 is entered, and if the article released by the contentful is not monitored, the monitoring is continued;
s2: the construction server triggers a construction script through hook service;
s3: the construction server starts a docker to independently construct a script; constructing docker according to articles issued by contentful; and a docker is adopted to independently construct a script, so that other interferences are avoided.
S4: and after the docker completes the construction of the script, the construction server transmits the file to the production server by using the rsync instruction. The rsync instruction can compare the front and back states of the project, so that the number of transmitted files is reduced, the transmission speed is increased, and the deployment speed is greatly increased.
The invention directly and automatically triggers the project construction and deployment after the content full issues the article, improves the efficiency, and can check the state and the log through the webpage, thereby being convenient for checking and analyzing. The automatic deployment construction has higher customizability compared with the gitlab configuration.
In step S1, when the contentful publication is detected, the file is locked using the linux' S flood instruction to prevent concurrency.
The step S3 is as follows: the construction server cancels the last construction and closes the docker; the construction server starts a docker to independently construct a script; docker was constructed from articles published by contentful.
The logs and error information in the whole process are stored by using a Redis database, and then the automatically constructed and deployed state and logs are displayed through a web page. The Redis database is stored in the memory, and the performance is excellent.
By adopting the scheme, the project automatic deployment method combined with the contentful is provided, the project construction deployment is directly and automatically triggered after the contentful issues the article, the efficiency is improved, and the state and the log can be checked through the webpage, so that the checking and the analysis are convenient. The automatic deployment construction has higher customizability compared with the gitlab configuration.
Drawings
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
The invention provides a project automatic deployment method combined with contentful, which comprises the following steps;
s1: deploying a node service in a construction server, and monitoring whether a contentful issues an article; if the article released by the contentful is monitored, the step S2 is entered, and if the article released by the contentful is not monitored, the monitoring is continued;
s2: the construction server triggers a construction script through hook service;
s3: the construction server starts a docker to independently construct a script; constructing docker according to articles issued by contentful; and a docker is adopted to independently construct a script, so that other interferences are avoided.
S4: and after the docker completes the construction of the script, the construction server transmits the file to the production server by using the rsync instruction. The rsync instruction can compare the front and back states of the project, so that the number of transmitted files is reduced, the transmission speed is increased, and the deployment speed is greatly increased.
The invention directly and automatically triggers the project construction and deployment after the content full issues the article, improves the efficiency, and can check the state and the log through the webpage, thereby being convenient for checking and analyzing. The automatic deployment construction has higher customizability compared with the gitlab configuration.
In step S1, when the contentful publication is detected, the file is locked using the linux' S flood instruction to prevent concurrency.
The step S3 is as follows: the construction server cancels the last construction and closes the docker; the construction server starts a docker to independently construct a script; docker was constructed from articles published by contentful.
The log output and error information in the whole process are stored by using a Redis database, and then a web page is used for displaying the automatically constructed and deployed state and log. The Redis database is stored in the memory, and the performance is excellent.
In summary, the invention provides a project automation deployment method combined with contentful, which directly and automatically triggers project construction and deployment after the contentful issues an article, improves efficiency, and can check states and logs through a webpage, thereby facilitating checking and analysis. The automatic deployment construction has higher customizability compared with the gitlab configuration.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (3)

1. A project automatic deployment method combined with contentful is characterized by comprising the following steps:
s1: deploying a node service in a construction server, and monitoring whether a contentful issues an article; if the article released by the contentful is monitored, the step S2 is entered, and if the article released by the contentful is not monitored, the monitoring is continued; in step S1, when a contentful issued article is monitored, a linux' S flood instruction is used for locking a file to prevent concurrence;
s2: the construction server triggers a construction script through hook service;
s3: the construction server starts a docker to independently construct a script; constructing docker according to articles issued by contentful;
s4: and after the docker completes the construction of the script, the construction server transmits the file to the production server by using an rsync instruction.
2. The method for automatically deploying a project in combination with contentful according to claim 1, wherein the step S3 is: the construction server cancels the last construction and closes the docker; the construction server starts a docker to independently construct a script; docker was constructed from articles published by contentful.
3. The method for automatically deploying projects in combination with contentful, as claimed in claim 1, wherein the log and error information in the whole process are stored using a Redis database, and then the status and log of the automatically constructed and deployed project are displayed through a web page.
CN202110618200.3A 2021-05-31 2021-05-31 Project automatic deployment method combined with contentful Active CN113360246B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110618200.3A CN113360246B (en) 2021-05-31 2021-05-31 Project automatic deployment method combined with contentful

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110618200.3A CN113360246B (en) 2021-05-31 2021-05-31 Project automatic deployment method combined with contentful

Publications (2)

Publication Number Publication Date
CN113360246A CN113360246A (en) 2021-09-07
CN113360246B true CN113360246B (en) 2023-03-21

Family

ID=77531764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110618200.3A Active CN113360246B (en) 2021-05-31 2021-05-31 Project automatic deployment method combined with contentful

Country Status (1)

Country Link
CN (1) CN113360246B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 Automatic system integration method based on timing construction

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014165933A1 (en) * 2013-04-13 2014-10-16 Kiss Digital Media Pty Ltd Methods, systems, apparatus, products, articles and data structures for cross-platform digital content
CN108874650A (en) * 2017-05-09 2018-11-23 上海秦苍信息科技有限公司 A kind of continuous integrating automated testing method
CN108521457B (en) * 2018-03-30 2019-08-13 三盟科技股份有限公司 A kind of tracking and system of equipment control command
CN109614108A (en) * 2018-10-31 2019-04-12 武汉艺果互动科技股份有限公司 A kind of project Automation arranging method based on Docker, equipment and storage equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106293742A (en) * 2016-08-11 2017-01-04 浪潮电子信息产业股份有限公司 Automatic system integration method based on timing construction

Also Published As

Publication number Publication date
CN113360246A (en) 2021-09-07

Similar Documents

Publication Publication Date Title
CN105843904B (en) For the monitoring warning system of database runnability
CN111416821A (en) Internet of things equipment information acquisition method, system and device
CN109344055B (en) Test method and test device
CN111125444A (en) Big data task scheduling management method, device, equipment and storage medium
CN105589782A (en) User behavior collection method based on browser
CN111737207B (en) Method and device for showing and collecting logs of service nodes in distributed system
CN110309021A (en) A kind of backup of Python database cross platform and restoration methods
CN109814877A (en) Project dispositions method and its device based on environmental management
CN113360246B (en) Project automatic deployment method combined with contentful
CN111651352A (en) Warehouse code merging method and device
Xu et al. Detecting cloud provisioning errors using an annotated process model
CN110555074A (en) method for extracting and processing data at fixed time, terminal and computer readable storage medium
CN103870549A (en) method and device for cleaning petroleum geological software data
CN113297086A (en) Test case generation method and device, electronic equipment and storage medium
CN112558982B (en) Code detection method and device and computer equipment
CN113722154A (en) Data management method and system, monitoring server and storage medium
CN113238953A (en) UI automation test method and device, electronic equipment and storage medium
CN113849328B (en) Management method and device of disaster recovery system
US20050149809A1 (en) Real time determination of application problems, using a lightweight diagnostic tracer
CN112667506B (en) Interface testing method and related device
CN116011972A (en) Data processing system, method, electronic equipment and computer storage medium
CN111177116B (en) Intelligent database management platform and management method thereof
CN114116282A (en) Method and device for reporting and repairing network additional storage fault
CN113504917A (en) Method and medium for integrating big data components by Ambari big data platform
Kim et al. The cost of checkpointing, logging and recovery for the mobile agent systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 518000 17th floor, block B, Sunshine Technology Innovation Center, No.2 Shanghua Road, Nanshan street, Nanshan District, Shenzhen City, Guangdong Province

Patentee after: Shenzhen Ruiyun Technology Co.,Ltd.

Address before: 518000 17th floor, block B, Sunshine Technology Innovation Center, No.2 Shanghua Road, Nanshan street, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN RAYVISION TECHNOLOGY CO.,LTD.

CP01 Change in the name or title of a patent holder