easiest way to organize/create installations/eggs for multiple applications under one CherryPy server?
Dave B. <
dave@...>
2012-02-20 15:59:57 GMT
Hi,
I currently have one application running under CherryPy. My next
project will involve creating another application that I would like to
also run under the same CherryPy server. I have two basic questions,
both having to do with simplicity/"best practices":
1) How to best organize files/directories? Right now the directory
structure is basically:
[server]
+---- setup.py
+----[server]
+---- server.py (CherryPy server and apps setup/launch
module)
+----[etc] -> server.conf (<cherrypy.config>; contains an
"apps" setting dictionary with info to create each app)
+----[logs] -> server.log (<cherrypy.log.error_log>)
+----[apps]
+----[app1]
+----setup.py
+----[app1]
+---- app1.py + other app1 modules
+----[etc] -> app1.conf
(<app1.config>)
+----[logs] -> app1.log
(<app1.log.error_log>)
+----[app2] (future)
+----setup.py
+----[app2]
+---- app2.py + other app2 modules
+----[etc] -> app2.conf
(<app2.config>)
+----[logs] -> app2.log
(<app2.log.error_log>)
I currently have app1 working under the server, and I would like to be
able to simply "plug-in" app2 when it is completed.
2) If the above is OK, how can the setup.py files be laid out to
create eggs to install the above? I have been thinking a server egg
could be installed first into site-packages, and then individual
application eggs could be installed "underneath" the server somehow.
But I'm not sure that's possible. Or is it better to reorganize,
making each application directory structure a "peer" to the server
directory structure? That would seem to allow eggs to install the
server and applications as "peers" under site-packages.
Thanks very much for any advice. I'm just looking for the best
combination of simplicity and flexibility/expandibility. I thought
I'd be able to quickly find guidance somewhere, but so far am striking
out.
Dave B.
--
--
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-users@...
To unsubscribe from this group, send email to cherrypy-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/cherrypy-users?hl=en.