question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stuck on deploy step

See original GitHub issue

Hi there,

I am trying to use the pm2 deploy feature but getting stuck on step 2 - deployment. I’ve run the setup command which successfully clones the repo but the next command throws the following error:

Edit: Works fine when using visionmedia/deploy directly.

--> Deploying in development environment on host 192.168.x.x
Not a git repository
To compare two paths outside a working tree:
usage: git diff [--no-index] <path> <path>

  commit or stash your changes before deploying

1

Config file:

{
  "apps" : [{
    "name"      : "xxx",
    "script"    : "./server/app.js",
    "env_development": {
      "NODE_ENV": "development",
      "NPM_PORT": 3000,
      "NPM_HOST": "0.0.0.0",
      "NPM_DB-URL": "localhost/cmp"
    },
    "args": "['--harmony']"
  }],
  "deploy" : {
    "development" : {
      "user" : "user",
      "host" : "192.168.x.x",
      "ref"  : "v0.1.3",
      "repo" : "git@bitbucket.org:hidden/hidden.git",
      "path" : "$HOME/xxx",
      "post-deploy" : "pm2 startOrRestart ecosystem.json && pm2 save"
    }
  }
}

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
levequejcommented, Feb 13, 2017

it seems that this bug came back with 2.4.0, It’s also solved for me if I cwd to $path/source

2reactions
Jokerocommented, Jan 23, 2015

Same issue(

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stuck at build and deploy steps · Issue #2699 · aws-amplify ...
I have connected to a GitHub repo for build and deploy on code updates and setup a Incoming Webhook to build and deploy...
Read more >
Azure App Service Deploy - stuck on Finished Step
The logs show it gets up to a Finishing step and then starts to hang, when changing to version 3 or retrying a...
Read more >
Amplify can't deploy, stuck while deploying
I have a static site hosted on amplify and a github repository linked with the amplify app. Everything worked fine until yesterday.
Read more >
Deployment Stuck on 'Scheduled'
The deployment has been created without any deployment steps. This could be due to any of the following reasons:.
Read more >
App is stuck 'Deploying...' or in an Error state
Check that the container for the app was successfully deployed and is running. sudo kubectl get pods -A -l apps.isc.ibm.com/app-type=app -L ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found