In my Compass project I have a config.rb with the setting environment = :development.
How do I tell Compass that, when it is run on the server (for example compass compile), the environment should be production?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the Docs
Option A: Use the compass production defaults.
Note: This only changes the compass defaults, options you’ve specified explicitly in your configuration will not be changed.
Option B: Override your configuration file settings on the command line
Option C: Create a separate configuration file for production
..edit prod_config.rb to suit your needs..