Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #93518 > unrolled thread

bottle app "crashes"

Started byMartin S <martin@skjoldebrand.eu>
First post2015-07-05 18:45 +0200
Last post2015-07-06 22:09 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  bottle app "crashes" Martin S <martin@skjoldebrand.eu> - 2015-07-05 18:45 +0200
    Re: bottle app "crashes" mm0fmf <none@mailinator.com> - 2015-07-06 20:28 +0100
      Re: bottle app "crashes" m <mvoicem@gmail.com> - 2015-07-06 22:09 +0200

#93518 — bottle app "crashes"

FromMartin S <martin@skjoldebrand.eu>
Date2015-07-05 18:45 +0200
Subjectbottle app "crashes"
Message-ID<mailman.315.1436170765.3674.python-list@python.org>
Hi all,

Last summer I fumbled together a small appplication that calculates both LASK 
and Elo ratings for chess. I managed to "webify" it using Bottle. This works 
nicely on my laptop for testing.

However ... (you knew there would be a however right)

Once I log off (or my user session times out) my server where I've started the 
application with python3 LASKweb.py & the application dies within a  minute, 
resulting in clients getting 404 errors when accessing the page (a simple 
table that's processed by the application).

I've tried installting bottle deamon but I keep getting errors to the effect 
that it doesn't recognize bottledeamon.
Also I've tried to run as a wsgi application, but I seem to missunderstand 
what modifications I need to do the get it to run (I get server 
misconfiguration errors on the latter).

Do anyone have a pointer to an idiot proof instruction on how to deploy a 
simple bottle application to a live server.

/Martin S

[toc] | [next] | [standalone]


#93538

Frommm0fmf <none@mailinator.com>
Date2015-07-06 20:28 +0100
Message-ID<XFAmx.114790$kD5.7651@fx07.am4>
In reply to#93518
On 05/07/2015 17:45, Martin S wrote:
> Hi all,
>
> Last summer I fumbled together a small appplication that calculates both LASK
> and Elo ratings for chess. I managed to "webify" it using Bottle. This works
> nicely on my laptop for testing.
>

[snip]

>
> Do anyone have a pointer to an idiot proof instruction on how to deploy a
> simple bottle application to a live server.
>
> /Martin S
>

I use bottle as it comes to provide 2 apps that face straight onto the 
web. I have to say that I have only done half the job because I never 
got as far as daemonising them. I simply run them from a "screen" 
session. This is fine as they run on my own teeny-tiny Linux VM (256MB 
ram/5GB disk with 1 Xeon core).

I simply log in and type "screen python3 myapp.py" and remember to exit 
with ctrl-A D. One of them has been up for about 3 months now without issue.

That might not explain why you are seeing problems but could give you a 
solution that works whilst you fix the underlying issue. Or not in my case!

Andy

[toc] | [prev] | [next] | [standalone]


#93539

Fromm <mvoicem@gmail.com>
Date2015-07-06 22:09 +0200
Message-ID<559ae082$0$27507$65785112@news.neostrada.pl>
In reply to#93538
W dniu 06.07.2015 o 21:28, mm0fmf pisze:
> On 05/07/2015 17:45, Martin S wrote:
>> > Hi all,
>> >
>> > Last summer I fumbled together a small appplication that calculates both LASK
>> > and Elo ratings for chess. I managed to "webify" it using Bottle. This works
>> > nicely on my laptop for testing.
>> >
> [snip]
> 
>> >
>> > Do anyone have a pointer to an idiot proof instruction on how to deploy a
>> > simple bottle application to a live server.
>> >
>> > /Martin S
>> >
> I use bottle as it comes to provide 2 apps that face straight onto the 
> web. I have to say that I have only done half the job because I never 
> got as far as daemonising them. I simply run them from a "screen" 
> session. This is fine as they run on my own teeny-tiny Linux VM (256MB 
> ram/5GB disk with 1 Xeon core).
> 
> I simply log in and type "screen python3 myapp.py" and remember to exit 
> with ctrl-A D. 

I would suggest using supervisor.

p. m.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web