Reputation: 5300
I dont want a config file only for cherrypy. I need it only for a very smallish webserver which wont be actually accesible to the world, so no need for me to mock around in config files.
Is there a way to pass a "config" to wsgiserver when starting it? I just need a 5-10 line script to fire of a threading web server, which can run a flask application and server static files.
Also, I dont want to specify full path to the static files, just ./static from where the script is ran.
Upvotes: 0
Views: 1019
Reputation: 19664
According to Changing default url to static-media in Flask the only option is to map /static
to something that serves from os.getcwd() + '/static'
.
Or with CherryPy: How to use cherrypy as a web server for static files?
Upvotes: 0