Git Product home page Git Product logo

Comments (4)

amxn avatar amxn commented on May 24, 2024

Sounds like an Asset pipeline issue. Check your precompiled assets and
where are you serving them from?

Regards,
Ameen.

On Thu, Feb 20, 2014 at 4:22 PM, ChaikaPrime [email protected]:

I intend to deploy Selfstarter on Heroku by simly following the
instructions.

The app was successfully uploaded, but when I open it I see that the
layout of the website is broken and only text is rendered.
What could be the issue?
Thanks

Reply to this email directly or view it on GitHubhttps://github.com//issues/81
.

from selfstarter.

ChaikaPrime avatar ChaikaPrime commented on May 24, 2024

Hi Ameen,
Thank you for your reply, it gave me some idea what to look for.

It seems I solved the problem:
Firstly, I forgot to include rails_12factor gem as stated in Heroku manual:
https://devcenter.heroku.com/articles/rails-asset-pipeline
It solved the problem with the layout.

Secondly, I followed:
http://stackoverflow.com/questions/18324063/rails-4-images-not-loading-on-heroku
And modified production.rb to have:
config.serve_static_assets = true
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
config.assets.compile = true

The only problem is that I do not have enough experience to understand what it actually means...

UPDATE: The video button does not work though...

from selfstarter.

skull-squadron avatar skull-squadron commented on May 24, 2024
  • config.serve_static_assets = true Absolutely needed. The default Rails production.rb assumes Apache or Nginx serves assets. The easiest way to diagnose this being false (off) is to view source, click on any .js or .css and get a 404 not found.
  • config.assets.compile = true won't help / won't hurt. Heroku precompiles most static assets during the git push. Most other things like views (templates) are served by Rails on-the-fly.
  • config.action_dispatch.x_sendfile_header on Heroku should be nil https://devcenter.heroku.com/articles/rack-sendfile

from selfstarter.

ChaikaPrime avatar ChaikaPrime commented on May 24, 2024

Thank you very much for your help!

from selfstarter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.