Images missing in production mode

48 views
Skip to first unread message

raven

unread,
Oct 1, 2012, 7:53:47 AM10/1/12
to munkiserver-dev
Hi all,

When I run my Munkiserver in development mode, everything looks fine,
but when I try to get the production-mode running, all the graphics
are missing. I set it up according to the guide:
rake db:migrate RAILS_ENV=production
rake bootstrap:all RAILS_ENV=production
(rake deploy RAILS_ENV=production) - suggested in another thread
rake assets:precompile
rails s -e production

I get output like this in the console:
"Started GET "/assets/arrow-down-1d1942f4b1b6ffaff98843f0f81b71b1.gif"
for 127.0.0.1 at 2012-10-01 12:03:30 +0200
Served asset /arrow-down-1d1942f4b1b6ffaff98843f0f81b71b1.gif - 200 OK
(1ms)
cache: [GET /assets/arrow-down-1d1942f4b1b6ffaff98843f0f81b71b1.gif]
miss, store
cache: [GET /dashboard/widget/available_package_updates?
_=1349085810637] miss"

The loginscreen looks like this in production-mode:
http://i50.tinypic.com/2vmyiah.png

Am I doing something wrong or do you need more output to work with?
Any help will be greatly apprecitated.

Sincerely
Steffan

Jordan Raine

unread,
Oct 1, 2012, 11:34:11 AM10/1/12
to munkise...@googlegroups.com
Looks like CSS is coming down. Can you open the web inspector and see what is 404'ing?

I'm actually surprised to see the page styled, usually Rails won't serve static assets (anything in public dir) while in production. Instead, it assumes those requests are handled by the web server (Apache, nginx). 

If you set config.serve_static_assets in environments/production.rb to true, does everything start working?

Jordan
--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To post to this group, send email to munkise...@googlegroups.com.
To unsubscribe from this group, send email to munkiserver-d...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/munkiserver-dev?hl=en.

raven

unread,
Oct 2, 2012, 8:03:39 AM10/2/12
to munkiserver-dev
Arh, makes sense.

After I put in "true" everything works, thank you. :)

I really should learn more about Rails, it would make it easier for me
in the long run. ;)

Sincerely
Steffan
Reply all
Reply to author
Forward
0 new messages