{"action":"opened","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/3867","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/3867/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/3867/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/3867/events","html_url":"https://github.com/Unitech/pm2/issues/3867","id":351476471,"node_id":"MDU6SXNzdWUzNTE0NzY0NzE=","number":3867,"title":"How to start a script in module type with pipenv?","user":{"login":"xzycn","id":4284380,"node_id":"MDQ6VXNlcjQyODQzODA=","avatar_url":"https://avatars2.githubusercontent.com/u/4284380?v=4","gravatar_id":"","url":"https://api.github.com/users/xzycn","html_url":"https://github.com/xzycn","followers_url":"https://api.github.com/users/xzycn/followers","following_url":"https://api.github.com/users/xzycn/following{/other_user}","gists_url":"https://api.github.com/users/xzycn/gists{/gist_id}","starred_url":"https://api.github.com/users/xzycn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xzycn/subscriptions","organizations_url":"https://api.github.com/users/xzycn/orgs","repos_url":"https://api.github.com/users/xzycn/repos","events_url":"https://api.github.com/users/xzycn/events{/privacy}","received_events_url":"https://api.github.com/users/xzycn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-17T06:45:24Z","updated_at":"2018-08-17T06:45:24Z","closed_at":null,"author_association":"NONE","body":"## I'm using the **pipenv** in my project, if I want to start a script through the way run as a module: **python -m**,so, my command like this:\r\n'''bash\r\npipenv run python -m scripts.script1\r\n```\r\nI don't know how to make this work with pm2, it seems that there is no document about this case:(\r\n\r\nAlthough, I  write the commands in a shell script like test.sh:\r\n```bash\r\n#!/usr/bin/env bash\r\npipenv run python -m scripts.script1\r\n```\r\n,and run the script with pm2:\r\n```bash\r\npm2 start test.bash --interpreter bash\r\n```\r\nSort of, it works.\r\n\r\nI want to know a better way to achieve this,if it exists :)\r\nThank you in advance:)\r\n\r\n"}}
{"actor":{"display_login":"xzycn"}}