定制 dripyard/demo-project 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dripyard/demo-project

最新稳定版本:0.0.1

Composer 安装命令:

composer create-project dripyard/demo-project

包简介

Project template DripYard demo themes and dependencies

README 文档

README

This project creates a DripYard demo installation of Drupal.

Installation

composer create-project dripyard/demo-project

Included Files

.boi_ci.yml

Provides configuration for boi_ci, including:

  • Symlink for settings.local.php
  • Symlink for developer.settings.yml
  • Symlink for sites/default/files
  • Build steps for boi_ci build:tests
  • Deploy steps for boi_ci deploy:git main

.gitlab-ci.yml

Provides CI steps for using GitLab CI.

settings.php

A Drupal settings file for environment-wide settings.

Steps to Deploy an Artifact

  1. Create an SSH Key for Deployment Generate an SSH key pair for deployment using the following command:

      ssh-keygen -t rsa -b 4096
    
  2. Add the Private Key to GitLab

    • Copy the private key and add it to GitLab as DEPLOY_KEY.
    • Ensure you include a new line after pasting the private key.
  3. Authorize the Public Key on the Deploy Host

    • Copy the public key to the ~/.ssh/authorized_keys file on the deploy host.
    • Alternatively, use a host-specific method to approve SSH authentication.
  4. Set Up a Git Repository on the Host If not using a Git-based deployment provider, create a Git repository on the host:

      touch README.md
      git init
      git add .
      git commit -m "Initial Commit"
      git config receive.denyCurrentBranch updateInstead
    
  5. Update .boi_ci.yml Modify the .boi_ci.yml file to include an environment path matching your Git repository, e.g.:

      /home/1250965.myhost.com/xxxx/public_html
    
  6. Run the Build Using GitLab CI Trigger the build process using GitLab CI.

  7. Verify the Deployment Confirm that the build succeeds and the files are deployed to the correct location.

  8. Troubleshooting If the build fails because of changes to settings.php this is because of the executable permissions that get added. Make sure to set the same permissions on the file as will be set during an artifcat build.

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2025-03-24