定制 aklump/live-dev-porter 二次开发

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

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

aklump/live-dev-porter

最新稳定版本:0.0.180

Composer 安装命令:

composer require aklump/live-dev-porter

包简介

Simplifies the management and transfer of assets between website environments.

README 文档

README

live_dev_porter

Summary

Simplifies the management and transfer of assets between website environments.

Visit https://aklump.github.io/live_dev_porter for full documentation.

Install with Composer

  1. This package requires some unpublished packages. You must add the following to composer.json in the repositories array:

    {
     "type": "composer",
     "url": "https://packages.intheloftstudios.com"
    }
  2. Require this package:

    composer require aklump/live-dev-porter:^0.0
    

Quick Start

  1. Ensure execute permissions: chmod u+x ./vendor/bin/ldp
  2. Initialize your project using ./vendor/bin/ldp init
  3. (To migrate from Loft Deploy jump below...)
  4. Open .live_dev_porter/config.yml and modify as needed.
  5. Ensure .live_dev_porter/config.local.yml is ignored by your SCM!
  6. Open .live_dev_porter/config.local.yml and define the correct local and remote environment IDs as defined in config.yml.
  7. Run ./vendor/bin/ldp configtest and work through any failed tests.

Migrating from Loft Deploy?

  1. rm .live_dev_porter/config*
  2. ./vendor/bin/ldp config-migrate .loft_deploy
  3. Rewrite any hooks as processors.
  4. Return to where you left off above.

Optional Shorthand ldp instead of ./vendor/bin/ldp

Option A: $PATH

This option has the advantage that any other composer binary in your project will be executable as well.

  1. Add /path/to/project/root/vendor/bin to your $PATH.

~/.bash_profile

PATH="/path/to/project/root/vendor/bin/ldp:$PATH"

Option B: alias

This option is singularly focused in terms of what it affects.

~/.bash_profile

  1. Add an alias called ldp that points to /path/to/project/root/vendor/bin/ldp.
alias ldp="/path/to/project/root/vendor/bin/ldp"

Both Options Continued

  1. Type ldp to test if it worked... you should see available commands
  2. Now use ldp from anywhere within your project, instead of ./vendor/bin/ldp from the root.
  3. Don't worry if you have more than one project using Live Dev Porter because this alias will work for multiple projects as long as they use the same version, and usually even if the versions differ.

Quick Start Remote

  1. Deploy your code to your remote server.
  2. On the remote server type ./vendor/bin/ldp config -l

Installation

The installation script above will generate the following structure where . is your repository root.

.
└── .live_dev_porter
│   ├── config.local.yml
│   └── config.yml
└── {public web root}

Configuration Files

Refer to the file(s) for documentation about configuration options.

Filename Description VCS
.live_dev_porter/config.yml Configuration shared across all server environments: prod, staging, dev yes
.live_dev_porter/config.local.yml Configuration overrides for a single environment; not version controlled. no

Usage

  • To see all commands use ./vendor/bin/ldp

Support My Open Source Work

If you’ve found this project useful, please consider supporting its ongoing maintenance. Even a small contribution helps fund updates, fixes, and new ideas.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Shell

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-07-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固