Niphlod, Webfaction recommends this strategy as a way to reduce memory usage. Their nginx instance serves static files without spinning off an Apache worker; so it doesn't count against your memory allotment.
Their memory sentry is very strict about killing your processes if you account goes over the limit. On Monday, November 4, 2013 3:53:42 PM UTC-5, Niphlod wrote: > > so the question is "is this a good idea?" ? > on what premises ? what's the goal of moving it? > Why your application needs another application to serve static files ? > > On Monday, November 4, 2013 12:11:50 PM UTC+1, Annet wrote: >> >> In layout.html I uncommented the following lines: >> >> <link rel="stylesheet" href=" >> http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css" >> >> type="text/css" media="all" /> >> <script src=" >> http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" >> type="text/javascript"></script> >> >> At the moment I have a symbolic link to a static-only application which >> serves the contents from the static folder of my application. >> This static-only application has its own domain, and I wonder whether it >> would be a good idea to move the contents from my >> application's static folder to this static-only application and change >> the link href and script src urls to: >> >> <link rel="stylesheet" href=" >> http://static.mydomain.com/css/bootstrap.min.css" type="text/css" >> media="all" /> >> >> <script src="http://static.mydomain.com/js/bootstrap-customized.min.js" >> type="text/javascript"></script> >> >> >> Best, >> >> Annet >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

