login community faq

Hello. I have a Pyramid app running. When I make change to some of the pages (changed favicon.ico, updated prettify.css), they are not reflected. I"ve run the bin/stop then bin/start scripts. If I view prettify.css (for instance) directly in the shell, I see the updated version. If i view it in the browser, I see the old version. Tried clearing browser cache - no change. If I remove prettify.css from the server (rename it), I can still see it on page refresh.

Guessing its cached somewhere? Or am I missing something obvious?

Help appreciated!

asked Sep 14 '12 at 21:06

cloverich's gravatar image

cloverich
112

It is possible that there is some upstream caching taking place, but this is not something that we cache. You could try attaching a timestamp variable to the end of your static file queries, which should cause any proxies along the way to think it's a new file and get the new version, e.g. "/static/css/cssfile.css?1347679787". - Wayne K. | WebFaction Support.

(Sep 14 '12 at 21:30) waynek ♦♦ waynek's gravatar image

Update (figured it all out):

Had nothing to do at all with Caching.

I originally followed the WebFaction documentation for deploying an existing Pyramid application

Install the project. Enter easy_install -U myproject, where myproject is the name of the project package, and press Enter.

I thought this was the right thing to do, because my project was, well, already existing. This was incorrect, that was for a complete deployment. So, what it did was install my application, inside the virtualenv, to lib/python2.7/site-packages/myProject-Egg. What I wanted to do instead:

1
(virtualenv) python setup.py develop

This, rather than putting my project in site-packages, put a pointer Journal.egg-link in site-packages, linked to my project. So, any changes I make in my development directory are shown as expected.

Added that all in in case anyone else is as confused as me about setup.py install vs develop differences.

answered Sep 15 '12 at 17:19

cloverich's gravatar image

cloverich
112

edited Sep 15 '12 at 18:21

Thank you for posting your solution.

(Sep 15 '12 at 18:52) johns ♦♦ johns's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×12

Asked: Sep 14 '12 at 21:06

Seen: 281 times

Last updated: Sep 15 '12 at 18:52

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited