1.2.3 • Published 7 months ago

xp-deploy v1.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 months ago

version

Init

Create an xpd_config.json file in the project root or execute npx xp-deploy init

{
  "default": {
    "user": "dev",
    "deployTo": "/home/dev/www/test",
    "deployFrom": "./dist",
    "keepReleases": 2,
    "copy": false
  },
  "test": {
    "servers": "test.example.com",
    "preDeploy": {
      "local": ["echo 1", "echo 2"],
      "remote": "echo 3"
    },
    "postDeploy": {
      "local": "echo 1",
      "remote": "echo 2"
    }
  },
  "production": {
    "servers": ["example-01.com", "example-02.com"],
    "preDeploy": {
      "local": ["echo 1", "echo 2"],
      "remote": "echo 3"
    },
    "postDeploy": {
      "local": "echo 1",
      "remote": "echo 2"
    }
  }
}

The root key of the configuration is the name of the environment. In `default' you can specify parameters that will be applied to all default environments. Further use of the parameters overwrites the defaults.

Options

user Username for connection.

servers The address of the server to connect. If there are several servers, an array is used.

deployTo Directory to deploy on server.

deployFrom Local directory with dist.

keepReleases The number of releases to be left on the server.

preDeploy An object that contains commands to run before uploading files to the server. local to execute local commands, remote to execute on the server.

postDeploy Similarly to preDeploy only commands are executed after files are loaded.

copy Indicates whether to copy the previous release before updating the files.

Run

npx xp-deploy deploy to:test

1.2.3

7 months ago

1.2.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.6-0

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago