500 error when log in as admin


#1

I’v deploied discourse without docker or vagrant. I’v just cloned it.
When I try to log in as admin in production mode, I’m getting 500 error:

Started GET "/" for 85.26.186.156 at 2015-06-07 22:43:43 +0200
Processing by ListController#latest as HTML
  Rendered list/list.erb within layouts/application (1.2ms)
  Rendered layouts/_head.html.erb (0.1ms)
  Rendered common/_special_font_face.html.erb (0.3ms)
  Rendered common/_discourse_stylesheet.html.erb (115.3ms)
Completed 500 Internal Server Error in 172ms (ActiveRecord: 26.9ms)

ActionView::Template::Error (undefined method `imported_filenames' for #<DiscourseSassImporter:0x0000000b1acab0>
  (in /home/local/discourse/app/assets/stylesheets/common/admin/admin_base.scss)):
     5: <%- end %>
     6:
     7: <%- if staff? %>
     8:   <%= stylesheet_link_tag "admin"%>
     9: <%- end %>
    10:
    11: <%- unless customization_disabled? %>
  app/views/common/_discourse_stylesheet.html.erb:8:in `_app_views_common__discourse_stylesheet_html_erb___3074388405429045765_74727940'
  app/views/layouts/application.html.erb:10:in `_app_views_layouts_application_html_erb__2602374800218544852_76003000'
  lib/topic_list_responder.rb:15:in `block (2 levels) in respond_with_list'
  lib/topic_list_responder.rb:11:in `respond_with_list'
  app/controllers/list_controller.rb:82:in `block (2 levels) in <class:ListController>'
  lib/middleware/anonymous_cache.rb:123:in `call'
  config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
  config/initializers/silence_logger.rb:26:in `call'
  lib/middleware/request_tracker.rb:70:in `call'

It works only when I comment this line: <%= stylesheet_link_tag “admin”%>, but this causes having no admin styles.
Any idea?
Thanks!


(Jeff Atwood) #2

For what purpose? These are not supported install methods.

Please install using the official Docker install guide.


#3

Sorry, I’m just beginner, and I thought it would be easer for me to customize app without docker.
Is it possible to deploy discourse with docker and then easily make changes in it?
Thanks!