Working through the tut material in teh PP book (agile dev with rails)
on a laptop running winxp.
Creating the “admin” application, things generally work great. Except:
at teh end of chapter 6, when we update teh css to improve the look of
the page - I copy the new scaffold.css into my working directory, but
webrick keeps serving the old css, even after a restart. Very odd. The
file at
c:/rails/depot/public/stylesheets/scaffold.css
is definitely different from what I get when I navigate to
I tried a few of those things - closed and restarted teh browser,
checked the path … the problem didn’t go away until I renamed
scaffold.css, requested it again (got an error) and then named it back.
So maybe teh caching is more obstinate than I realised (cached across
browser instances?)
Has anyone seen any docs on how to maintain multiple environments on the
same
machine? Specifically, I’m wondering how I can maintain a “dev” and a
“qa”
environment on the same machine.
I want to be able to have “qa” match the production environment in terms
of
which gems and with versions of the gems it has while upgrading the
gems in the
dev environment on a different schedule. That way I could, for example,
keep dev
up to date with the latest rails gems while not upgrading the qa
environment
until I’m testing for a release.
Using Java this is pretty easy in terms of environments - you simply set
a
“JAVA_HOME” which defines the jdk you’re using and then you include
whichever
versions of the jar files you need in the classpath for each
environment.
Had that before as well, while removing it and putting it back only then
the
browser seems to really refresh. Like I said, I’ve seen browsers cache
even
when doing an unconditional refresh. So when developing I always disable
cache, because that completely eliminates the formentioned problem.
Regards,
Gerard.
On Friday 23 December 2005 13:55, Daniel McBrearty tried to type
something
like:
daniel
–
“Who cares if it doesn’t do anything? It was made with our new
Triple-Iso-Bifurcated-Krypton-Gate-MOS process …”
On Fri, 2005-12-23 at 08:38 -0500, Kevin B. wrote:
until I’m testing for a release.
Using Java this is pretty easy in terms of environments - you simply set a
“JAVA_HOME” which defines the jdk you’re using and then you include whichever
versions of the jar files you need in the classpath for each environment.
GEM_HOME looks like it can tell ruby to use a specific location for
gems. You could set it separately for each “environment” in the
webserver’s exported variables. But you’d need to maintain several gem
repositories.
Or make use of freeze_gems and such as David suggested.