feat: 초기 프로젝트 설정 및 룰.md 파일 추가
This commit is contained in:
4
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/README.md
generated
vendored
Normal file
4
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/README.md
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
# Managing a Python Application
|
||||
|
||||
On this boilerlate you will see how you can start a Python application with PM2.
|
||||
7
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/echo.py
generated
vendored
Normal file
7
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/echo.py
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
import time
|
||||
|
||||
while 1:
|
||||
print("Start : %s" % time.ctime())
|
||||
print("second line")
|
||||
time.sleep(1)
|
||||
12
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/ecosystem.config.js
generated
vendored
Normal file
12
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/ecosystem.config.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
module.exports = {
|
||||
apps : [{
|
||||
name: 'API',
|
||||
script: 'echo.py',
|
||||
env: {
|
||||
NODE_ENV: 'development'
|
||||
},
|
||||
env_production: {
|
||||
NODE_ENV: 'production'
|
||||
}
|
||||
}]
|
||||
};
|
||||
11
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/package.json
generated
vendored
Normal file
11
api.hyungi.net/node_modules/pm2/lib/templates/sample-apps/python-app/package.json
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "python-app",
|
||||
"version": "1.0.0",
|
||||
"description": "Example on how to manage a Python application with PM2",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
"license": "ISC"
|
||||
}
|
||||
Reference in New Issue
Block a user