4 ms·
I'm a complete Rails noob, can anybody help me understand why after installing this my app shows up without any formatting? http://imgur.com/pQ8wOdG http://imgu
by boyaka 12y ago
I'm a complete Rails noob, can anybody help me understand why after installing this my app shows up without any formatting? http://imgur.com/pQ8wOdG http://imgur.com/pQ8wOdG
I did notice that there was a Warning regarding different versions of libxml used for Nekogiri:
$ RAILS_ENV=production rake db:migrate
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.7.8
- timmorgan 12y agoDepends on how you installed it... if you're running on your local computer, then it sounds like you're running in "production" mode without first compiling assets with `rake assets:precompile`. (See http://guides.rubyonrails.org/asset_pipeline.html http://guides.rubyonrails.org/asset_pipeline.html for some more info.) Or just run it in development mode with `rails server`.
- bartzon 12y agoConcerning installing, you might want to try out Omnibus (https://github.com/opscode/omnibus https://github.com/opscode/omnibus). We've used it successfully to create a full-stack installer for our Rails project, Codem. See https://github.com/madebyhiro/codem-install https://github.com/madebyhiro/codem-install.
- boyaka 12y agoSorry I didn't mention it, I followed the wiki install which sets up the production environment. Just noticed after seeing your post that there are pretty simple instructions for the development setup, if I just kept looking past the wiki link. I ran it in development mode first with the only hitch being I needed to re-run the mysql user/table creation with _dev, but once I did that the development started up flawlessly on localhost:3000. I then went back to the apache/production server and suddenly it looks a lot better, but I still have some missing images (FATALs in log for GETing assets still?). I'm still confused about how to point my rails server to production instead of development, but I'm completely satisfied that it is working perfectly with rails in development mode. Here's a screenshot showing the images missing on my production/apache/passenger setup: http://i.imgur.com/XVLz7lt.png http://i.imgur.com/XVLz7lt.png