Skip to content

Setup paths failed (Windows Host) #190

@jugonzalez40

Description

@jugonzalez40

Hi, I'm trying to deploy a project from my local machine to a windows host (both windows), but gave this error:

image

The traslate of the description error is: The comand syntax is not correct

The host server have git and openSSH, actually could access by ssh in git-bash. If deploy locally in the host, works fine, so insted of the public ip put localhost

This is the abort error in the deploy bash

test $? -eq 0 || abort setup paths failed

And this is my ecosystem.json config

{
    "apps": [
        {
            "script": "./app.js",
            "restart_delay": 5000,
            "cwd": "./",
            "name": "Auditorias",
            "env": {
                "NODE_ENV": "development"
            },
            "env_production": {
                "NODE_ENV": "production"
            }
        }
    ],
    "deploy": {
        "development": {
            "user": "Administrador",
            "host": [
                {
                    "port": "9053",
                    "host": "<IP_HOST>"
                }
            ],
            "ref": "origin/development",
            "repo": "<THE_REPO>",
            "path": "C:/pm2test/Auditorias",
            "post-deploy": "npm install --production && pm2 startOrRestart ecosystem.json —-env development",
            "env": {
                "NODE_ENV": "development"
            }
        }
    }
}

So, it's posible to deploy from a windows machine to a windows machine, and what means test $? -eq 0 ?

NodeJS version: 8.9.0
PM2 version: 4.4.0
Local SO: windows 10
Host SO: Windows server 2012

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions