Table of contents
Directory
Updated at 2020-03-20 16:00:22

tars-deploy document

Introduction

Tars-deploy is used to package the project and facilitate the distribution of tool components on the tars management platform.

Instructions

  1. Dependence
    • Phar extension
  2. Make sure the ./tars/tars.proto.php file under the project exists and contains the following
return array(
    'appName' => 'APPNAME', //app name. e.g tars of tars.tarsconfig
    'serverName' => 'SERVERNAME', //server name. e.g tarsconfig of tars.tarsconfig
    //...
);
  1. Introduce tars-deploy to the project's composer.json

  2. Add the following to the project composer.json

"scripts": {
    "deploy": "\\Tars\\deploy\\Deploy::run"
}
  1. Execute the command composer run-script deploy in the project directory to generate a compressed package of the project to be uploaded
Chapter