WebFaction
Community site: login faq

Hi,all I'm trying to run a bottle webapp

I've install cherrypy via easy_install and setup a custom app . then add run(host='localhost', port=36086, server='cherrypy') to my app..(port is same as in the control panel)

There is a 502 bad gate way error . When I run this app via ssh : python2.7 XXXX.py (this may prove that the port is right)

the webapp works fine .. Could you pls kindly help ?

Isn't there should be some configuration at Cherrypy ? other than wsgi_mod ,there is apache folder under webapp_name folder that I can confiugre to tell apache to run my py app. but how cherrypy know there is an app need to run ?

asked 24 Sep '11, 22:32

MOY
134
accept rate: 0%

So, you mean that when you run the app over SSH, it does not give a 502 error but when you close your SSh session it gives a 502 error?

If so, you may need to start the process in background using:

python2.7 XXXX.py &

or in a screen.

(24 Sep '11, 22:41) neeravk

Are you running cherrypy or bottle? They are not the same thing.

(02 Dec '11, 16:56) Ken K

CherryPy has its own WSGI-compliant web server that you can use to run apps that support WSGI, such as Bottle.

(02 Dec '11, 17:01) seanf

Send us a ticket within the control panel so we can see the issue in real-time.

(05 Mar '12, 17:20) johns
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×337
×32
×9

question asked: 24 Sep '11, 22:32

question was seen: 4,136 times

last updated: 06 Mar '12, 08:40

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM