Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 pull not working if starter-script not in working dir #3436

Open
Olegt0rr opened this issue Jan 30, 2018 · 0 comments
Open

pm2 pull not working if starter-script not in working dir #3436

Olegt0rr opened this issue Jan 30, 2018 · 0 comments

Comments

@Olegt0rr
Copy link

Olegt0rr commented Jan 30, 2018

What's going wrong?

pm2 pull not working if starter-script and executable file not in the same dirs

How to reproduce this issue?

Dirs and files:
/home/start.json
/home/dir/.git
/home/dir/app.py

TestCaseOne:
cat start.json

{
	"name": "app_name",
	"script": "dir/app.py",
	"exec_interpreter": "python3.6"
}

TestCaseTwo:
cat start.json

{
	"name": "app_name",
	"script": "app.py",
	"cwd": "./dir",
	"exec_interpreter": "python3.6"
}

Let's run:
pm2 start start.json
pm2 pull app_name

TestCaseOne: pull successful
TestCaseTwo: there's no .git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants