Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

gunicorn

$ pip install gunicorn
$ cat myapp.py
def app(environ, start_response):
  data = b"Hello, World!
"
  start_response("200 OK", [
    ("Content-Type", "text/plain"),
    ("Content-Length", str(len(data)))
  ])
  return iter([data])
$ gunicorn -w 4 myapp:app
[2014-09-10 10:22:28 +0000] [30869] [INFO] Listening at: http://127.0.0.1:8000 (30869)
[2014-09-10 10:22:28 +0000] [30869] [INFO] Using worker: sync
[2014-09-10 10:22:28 +0000] [30874] [INFO] Booting worker with pid: 30874
[2014-09-10 10:22:28 +0000] [30875] [INFO] Booting worker with pid: 30875
[2014-09-10 10:22:28 +0000] [30876] [INFO] Booting worker with pid: 30876
[2014-09-10 10:22:28 +0000] [30877] [INFO] Booting worker with pid: 30877
Comment

PREVIOUS NEXT
Code Example
Shell :: xbox 360 wireless adapter linux 
Shell :: pacman purge 
Shell :: add branch to bash-prompt 
Shell :: How do I revert a Git repository to a previous commit? 
Shell :: git credentials store with timeout 
Shell :: [error] The installed version of the /Database Logging/ module is too old to update 
Shell :: test server download speed 
Shell :: git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. 
Shell :: rials db down 
Shell :: apache not restart 
Shell :: conemu git bash 
Shell :: create new repository in git bash 
Shell :: git fetch upstream from master 
Shell :: Sending a Simple Email From Linux Terminal 
Shell :: copy everything vim 
Shell :: git keep empty folder 
Shell :: sudo apt update not working 
Shell :: Copy a Remote File to a Local System using the scp Command 
Shell :: delete file from git history 
Shell :: command to install strongswan 
Shell :: linux add homedir 
Shell :: when hostname ansible 
Shell :: phpinfo cli 
Shell :: awk if column greater than 
Shell :: command line argument bash 
Shell :: brew install 
Shell :: gnome-sushi version 
Shell :: Error: Unable to find a match: centos-release-openstack-queens 
Shell :: push local branch changes to remote branch 
Shell :: linux "Error: Timeout was reached" 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =