Cannot emulate Bottle API with available dev_appserver.py Options

35 views
Skip to first unread message

Sunanda Samaddar

unread,
Dec 30, 2019, 11:28:47 AM12/30/19
to Google App Engine
# e.g. code
# from bottle import Bottle, run
# bottle = Bottle()
run
(app=bottle,
    server
=
'bjoern',  # ??? How can I emulate this ???  
    host
=
'localhost', # dev_appserver.py option available
    port
=
8080,        # dev_appserver.py option available
    reloader
=
True,    
    debug
=
True)       # dev_appserver.py option available

Hi, I'm using `appengine-python-bottle-scaffold` in Python 2 dev environment, and stuck at trying to emulate a Bottle `run` command as described above with `dev_appserver.py` options. Can anybody help me with this approach?

George (Cloud Platform Support)

unread,
Dec 30, 2019, 3:25:26 PM12/30/19
to Google App Engine
It looks as if you are looking for the following command: dev_appserver.py [PATH_TO_YOUR_APP] , assuming you are in Standard Environment.  Related detail is to be found on the "Using the Local Development Server" documentation page

Regarding Python libraries such as Bottle, you may check Using Python Libraries.  

Sunanda Samaddar

unread,
Dec 31, 2019, 8:05:10 AM12/31/19
to Google App Engine
Thanks George! 
Reply all
Reply to author
Forward
0 new messages