Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'received:209.85.223': 0.03; 'buildbot': 0.07; 'api': 0.09; 'python': 0.09; 'apache,': 0.09; 'branches': 0.09; 'instance.': 0.09; 'url:apache': 0.09; 'cc:addr:python-list': 0.10; 'django': 0.10; 'anyway': 0.11; 'properly': 0.15; 'already,': 0.16; 'bend': 0.16; 'subject:django': 0.16; 'certainly': 0.17; 'tests': 0.18; 'app': 0.19; 'cc:2**0': 0.23; 'somewhere': 0.24; 'host': 0.24; 'script': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'possibility': 0.27; 'message-id:@mail.gmail.com': 0.27; 'subject:/': 0.28; 'run': 0.28; 'really,': 0.29; 'probably': 0.29; "i'm": 0.29; 'maybe': 0.29; 'e.g.': 0.30; 'running': 0.32; 'could': 0.32; 'problem': 0.33; 'anyone': 0.33; 'received:google.com': 0.34; 'server': 0.35; 'needed': 0.35; 'data,': 0.35; 'mapping': 0.35; 'doing': 0.35; 'similar': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'really': 0.36; 'but': 0.36; 'url:org': 0.36; "i'll": 0.36; 'possible': 0.37; 'keeps': 0.37; 'two': 0.37; 'uses': 0.37; 'why': 0.37; 'virtual': 0.37; 'quite': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'unit': 0.38; 'things': 0.38; 'url:docs': 0.38; 'where': 0.40; 'header:Received:5': 0.40; 'your': 0.60; 'first': 0.61; 'production': 0.63; 'different': 0.63; 'world': 0.63; 'great': 0.64; 'results': 0.65; 'andrea': 0.84; 'bottle': 0.84; 'michel': 0.84; 'subject:running': 0.84; 'ports': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=yBN8Mdyq67J2KyiR3QFUp4VuIbZAZPWphL0ls+QEPSU=; b=bQqomEJHSR5CV8onmy0cPxaSpZB14QdYLsJvDVj+Wp0htXRPj4w1BiPqN/U3W9EdO+ 0d+LvpZltISkCi37Eq+Z9t/lkdT/EfQSjPps1dAfoVxsT1e32pAJez27m9IpaLX9iNH5 fKoXsEKo+bn35CmLTwLe+Qybt1wrgYnkDF7f5eRG2R+OBnCEfIu09oE3RyrWOEOOoPIR qjeU7LU/7pHcKDGH4g4gwCRLbhaEELrqID4sYk8316MCkekhUYnUw7SK5R2SpBEkSKDQ lWlLSs9++jlHVR2Q6XZR7S7yYfJpxmUil7fH4QbaPo0OPu9c+rPBevxCRURpkOj4y4kL KbLQ== MIME-Version: 1.0 In-Reply-To: <50EA4424.7020900@gmail.com> References: <50E5B33E.4050106@gmail.com> <50EA4424.7020900@gmail.com> Date: Mon, 7 Jan 2013 10:26:16 +0000 Subject: Re: running multiple django/bottle instances From: andrea crotti To: Michel Kunkler Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 54 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1357554385 news.xs4all.nl 6969 [2001:888:2000:d::a6]:51462 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:36341 Not really, on the staging server we are using the django/bottle webserver.. Anyway I was thinking that a great possible solution might be to set up something like buildbot to: - checkout all the needed branches - run the various servers for all of them on different ports, where maybe the mapping port-branch is set from somewhere - run all the unit tests for them and make the results available With a similar configuration we would probably be very happy already, anyone doing something similar? 2013/1/7 Michel Kunkler : > As you are certainly running a production server like Apache, your problem > is actually not Python related. > If you want to run your applications on different ports, take a look on e.g. > Apaches virtual host configurations. > http://httpd.apache.org/docs/2.2/vhosts/examples.html > > Am 03.01.2013 17:35, schrieb Andrea Crotti: > >> I'm working on a quite complex web app that uses django and bottle >> (bottle for the API which is also restful). >> >> Before I came they started to use a staging server to be able to try out >> things properly before they get published, but now we would like to have >> the possibility to see multiple branches at a time. >> >> First we thought about multiple servers, but actually since bottle and >> django can be made to run on different ports, I thought why not running >> everything on one server on different ports? >> >> We also use elasticsearch and couchdb for the data, but these two >> don't change that much and can just be a single instance. >> >> So what would be really great could be >> >> staging_server/branch_x >> staging_server/branch_y >> >> and something keeps track of all the various branches tracked, and run >> or keeps running bottle/django on different ports for the different >> branches. >> >> Is there something in the wonderful python world which I could bend to >> my needs? >> >> I'll probably have to script something myself anyway, but any >> suggestions is welcome, since I don't have much experience with web >> stuff.. > >