I've just started using hosting on webfaction and I'm trying to understand some basics about how applications fit together. I understand that when I upload static or php files to htdocs that I can run or display them when my browser goes to 'user.webfaction.com/index.html' for example. However, once I install an application I'm getting a confused. For example, I just installed the cherrypy app. There is a default file called 'site.py' in my installation and when I read the code it would print out the html 'Hello, this is your default site.' I don't understand how I view that page. I tried running 'python2.7 site.py' and then navigating to a few variations of username.webfaction.com/... but I'm not sure which combination to use. Is there a standard webpage structure where I can see the results of installing an application? asked 02 Oct '11, 03:51 womble |
Hi, Apps and Websites function separately when first created and you have to link them by adding your apps as site apps at particular URL paths in your sites to make them publicly accessible. You can learn more about it here: http://docs.webfaction.com/user-guide/websites.html#creating-a-website and expose your Cherrypy app on a domain/<url-path> by creating a new site or editing your existing one to add a new site app or replace the "htdocs" one. Hope that helps! answered 02 Oct '11, 04:04 neeravk Thanks - yes it does help! I just needed to reread the documentation to understand it a little better.
(02 Oct '11, 05:33)
womble
|