Anthony Kong
Anthony Kong

Reputation: 40754

How to find out if bottle server has successful started up?

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

Answers (1)

Jason Lutz
Jason Lutz

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

Related Questions