To achieve a cleaner separation between environments, I've taken to going beyond RVM and spinning up Ubuntu Linux VM's for each of the projects. That way, my databases, NoSQL stores, gems, and search indexes are completely separate and changes in one have no impact on the others.
While much cleaner, this approach can expose interesting quirks in the software building blocks. One of my projects makes use of Twitter Bootstrap, which is built around Less CSS. Running locally, I make use of
less.js instead of relying on watchers to recompile the stylesheet.
However, when running Phusion Passenger in a VM,
less thinks that it's in a production environment. Therefore, it does not update the stylesheets very often making UI development a pain.
less includes to force
less to operating in development mode.
Did you like this? Please share:
The Lost Year: A Failed Experiment to Switch Away From Mac
Fed up with the Apple Keyboard, I bought a ThinkPad, installed Linux, and promptly decided that I hated computers.
Maker's Space, Manager's Space
The Grand Remote Work Experiment: A Retrospective
The COVID-19 pandemic has lead to an unexpected experiment in remote working. What has worked and why?