Reputation: 40754
It is a typical, minimal example of a bottle
web server
from bottle import route, run, template
@route('/hello/<name>')
def index(name):
return template('<b>Hello {{name}}</b>!', name=name)
run(host='localhost', port=8080)
How can I find out if run
has successfully started up an instance of a bottle
server and the server is ready to receive incoming http call?
Upvotes: 1
Views: 100
Reputation: 91
Using a web browser, try to browse to http://localhost:8080/hello/Anthony
. If you are on linux, try wget http://localhost:8080/hello/Anthony
.
Upvotes: 1