ソースを参照

Hello world

https
jakobsn 6年前
コミット
ceebea2b10
4個のファイルの変更21行の追加0行の削除
  1. +1
    -0
      .gitignore
  2. +8
    -0
      README.md
  3. +1
    -0
      requirements.txt
  4. +11
    -0
      vulnapp.py

+ 1
- 0
.gitignore ファイルの表示

@@ -0,0 +1 @@
__pycache__

+ 8
- 0
README.md ファイルの表示

@@ -0,0 +1,8 @@
INSTALL

pip install -r requirements.txt

RUN

gunicorn --workers=2 vulnapp

+ 1
- 0
requirements.txt ファイルの表示

@@ -0,0 +1 @@
gunicorn==19.9.0

+ 11
- 0
vulnapp.py ファイルの表示

@@ -0,0 +1,11 @@
def application(environ, start_response):
"""Simplest possible application object"""
data = str.encode('Hello, World!\n')
status = '200 OK'
response_headers = [
('Content-type','text/plain'),
('Content-Length', str(len(data)))
]
start_response(status, response_headers)
return iter([data])


読み込み中…
キャンセル
保存