title: rake aborted! Sass::SyntaxError: Undefined variable: "$alert-padding"
body: <p>I got stuck on production environment for rails application because my assets are not compiled. When I use     </p>
  
  <p><code>rvmsudo bundle exec rake assets:precompile RAILS_ENV=production --trace</code>    </p>
  
  <p>It throws <code>rake aborted! Sass::SyntaxError: Undefined variable: "$alert-padding"</code></p>
  
  <p>Here is my Gemfile:</p>
  
  <pre><code>            source 'https://rubygems.org'
              gem 'rails', '4.2.3'
              gem 'mysql2', '~&gt; 0.3.11'
              gem 'jquery-rails'
              gem 'jquery-ui-rails'
              gem 'sass-rails', '~&gt; 5.0'
              gem 'bootstrap-sass', '~&gt; 3.2.0'
              gem 'uglifier', '&gt;= 1.3.0'
              gem 'coffee-rails', '~&gt; 4.1.0'
              gem 'jbuilder', '~&gt; 2.0'
              gem 'sdoc', '~&gt; 0.4.0',          group: :doc
              gem 'haml'
              gem 'haml-rails'
              gem 'devise', github: 'plataformatec/devise'
              gem 'html2haml'
              gem 'simple_form'
              gem 'validates_formatting_of'
              gem 'tzinfo-data'
              gem 'therubyracer',  platforms: :ruby
              gem 'twitter-bootstrap-rails'
              gem 'jquery-validation-rails'
              gem 'sprockets-rails', :require =&gt; 'sprockets/railtie'
              gem 'jquery-turbolinks'
  
              gem 'paperclip'
              gem 'fancybox-rails'
              gem 'css3-progress-bar-rails'
  
              group :development do
                gem 'spring'
                gem 'pry-rails'
                gem 'better_errors'
              end
  
              group :development, :test do
                gem 'rspec-rails'
                gem 'factory_girl_rails'
              end
  
              gem 'delayed_job_active_record'
  
              # Need daemons to start delayed_job
              gem 'daemons'
  
              gem 'rails_config', '~&gt; 0.4.2'
              gem 'cancan'
              gem 'two_factor_authentication'
              gem 'twilio-ruby'
              gem 'binding_of_caller'
              gem 'rest-client'
  </code></pre>
  
  <p>Here is my porduction.rb</p>
  
  <pre><code>  Rails.application.configure do
        config.cache_classes = true
        config.eager_load = true
        config.consider_all_requests_local       = false
        config.action_controller.perform_caching = true
        config.serve_static_files = true
        config.assets.js_compressor = :uglifier
        config.assets.css_compressor = :sass
        config.assets.compile = false
        config.assets.compress = false
        config.assets.digest = true
        config.log_level = :debug
  
        config.action_mailer.perform_deliveries = true
        config.action_mailer.delivery_method = :smtp
        config.action_mailer.raise_delivery_errors = true
        config.i18n.fallbacks = true
        config.active_support.deprecation = :notify
        config.action_mailer.default_url_options = { :host =&gt; Settings.PROD_URL }
        config.log_formatter = ::Logger::Formatter.new
        config.active_record.dump_schema_after_migration = false
      end
  </code></pre>
  
  <p>And application.css:</p>
  
  <pre><code>    /*
      *= require_tree .
      *= require_self
      */
  </code></pre>
  
  <p>So, why i am getting <code>rake aborted! Sass::SyntaxError: Undefined variable: "$alert-padding"</code> while compiling.
  My production works but no css is loaded to it.</p>