Unitech / pm2

Node.js Production Process Manager with a built-in Load Balancer.
https://pm2.keymetrics.io/docs/usage/quick-start/
Other
41.51k stars 2.62k forks source link

pm2 pull - "No versioning system found for process..." #1563

Closed ericterpstra closed 9 years ago

ericterpstra commented 9 years ago

I'm having trouble getting PM2 to recognize the .git folder in my application. My folder structure is like this (on Windows Server 2012 R2)

D:\wwwroot\myapp\.git
D:\wwwroot\myapp\myapp-pm2.json
D:\wwwroot\myapp\someotherfiles.foo
D:\wwwroot\myapp\bundle\main.js  <= node app entry point

Below is my .json config for PM2. I'm using pm2 start myapp-pm2.json which seems to be working fine.

{
  "apps" : [{
    "name"        : "myapp",
    "script"      : "bundle\\main.js",
    "cwd"         : "D:\\wwwroot\\myapp",
    "env": {
      "NODE_ENV": "production",
      "PORT" : 3000
    }
  }]
}

However, when I do pm2 pull myapp, I get the error:

[PM2] Updating repository for process name myapp
[PM2] No versioning system found for process myapp

Is this something I'm doing wrong, or does pm2 pull not work with Windows?

saleempadi commented 9 years ago

i have the same issue. pm2 version is 0.14.6

Unitech commented 9 years ago

Not sure that these commands work on Windows: https://github.com/keymetrics/vizion/blob/master/lib/git.js#L183

If any one could make suggestion to make this work on windows, drop an issue or pr on vizion package

saleempadi commented 9 years ago

@Unitech I am having this issue in Linux.

jinceon commented 8 years ago

@zalym maybe your git version is too old.

http://stackoverflow.com/questions/36497380/version-control-metadata-sometimes-missing-when-i-use-pm2

after I updated my git, the problem was resolved.

Olegt0rr commented 6 years ago

@Unitech please open issue

It's not a git problem! It's not a Windows problem! (I've got it on Linux)

/home/app/app.py /home/start_app.json

pm2 can see .git if I start app directly from /home/app/app.py pm2 pull app works! But if I start the app by /home/start_app.json - pm2 can't sell .git and return error No versioning system found for process...

Please fix it

mattehicks commented 6 years ago

Same problem here, I'm using Linux and starting apps using "pm2 start npm --name" Keymetrics is telling me "no .git found in the project"

Kovaelin commented 6 years ago

@Unitech Is this sill an issue? "Versioning module and post-deployment reports not activated (no .git found in the project)" only seems to be appearing on the website.