By adding the following to the config.rb it will allow the environment to be changed between development and production. When in production, debugging will not be printed in the css files.

# Change this to :production when ready to deploy the CSS to the live server.
environment = :development

All credit goes to Bladwin (Erik Baldwin) for his help!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

C13L0’s picture

Here is the patch =)

C13L0’s picture

Status: Active » Needs review
FileSize
380 bytes

Resubmitting, didn't change status to needs review.

fubhy’s picture

Status: Needs review » Closed (works as designed)

The right way to do this is "compass compile -e production --force" before deploy.

C13L0’s picture

Component: Code » Documentation
Category: bug » support
Status: Closed (works as designed) » Active

Thank you for the proper command line. Could the proper way be documented in the config.rb file or somewhere here in Omega docs? I spend two days, including asking in #drupal-omega for help. I am new at Omega 4 and these type of tips are helpful and timesaving.

muntjac’s picture

As C13L0 said, this should be in the documentation. I spent a long while scratching my head this evening trying to figure this out.

fubhy’s picture

This is not really Omega specific as it is rather a Compass / Sass thing. Hitting up Google for this returns http://compass-style.org/help/tutorials/configuration-reference/ as the first result which explains the "environment" parameter and how to override it from the command line. You can of course edit the handbook and put a link to this page there or even explain it there separately. Anyone with a d.o can edit the handbooks anytime - Please help!

Are you really sure we need to add this to config.rb? Who is going to look for answers in there? I'd prefer it in the handbooks tbh.

C13L0’s picture

Issue summary: View changes
Status: Active » Fixed

This is now documented in the handbook under Common Questions. https://drupal.org/node/1936986

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.