web.py wikihome of the web.py community Using web.py on TextDriveTextDrive graciously provided me with a free shared hosting account to try to get web.py running on their system. I'm keeping notes on what I did here. I got assigned Getting it upFirst, file a support ticket requesting a port to run web.py on. Apparently filing such a ticket is standard practice for running web apps on TextDrive. You'll get back a number, which we'll call Second, SSH to
Now check Now you can log into your webmin ( Now check Install CheetahInstalling Cheetah on TextDrive is quite straight forward. Check here to see the full installation script. Keeping it upIn your SSH window, type Ctrl-C to kill the Python script and run:
This will run your web.py app as a daemon, so you can log out and it will stay running. To make sure that the server starts your script back up when it reboots, go into webmin, click "Scheduled Cron Jobs", click "Create a new scheduled cron job", and add this as the command. Click the radio button next to "Simple schedule..." and select "When system boots" from the drop down menu. Then click "Create". (Note: My server hasn't rebooted yet, so I haven't gotten a chance to test that this works.) Making it fastFor reasons I don't quite understand lighttpd proxying to web.py is faster than running web.py directly. So if you want your server to support more serious loads, you should run a simple lighttpd instance on port 8048 and have it talk to web.py through FastCGI. |
Powered by infogami, which uses web.py. |