Comments (4)
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?
ThanksReply to this email directly or view it on GitHubhttps://github.com//issues/81
.
from selfstarter.
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.
config.serve_static_assets = true
Absolutely needed. The default Rails production.rb assumes Apache or Nginx serves assets. The easiest way to diagnose this beingfalse
(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 thegit push
. Most other things like views (templates) are served by Rails on-the-fly.config.action_dispatch.x_sendfile_header
on Heroku should benil
https://devcenter.heroku.com/articles/rack-sendfile
from selfstarter.
Thank you very much for your help!
from selfstarter.
Related Issues (20)
- Functionality for custom payment option? HOT 1
- jquery-ui update HOT 1
- Bundle install HOT 4
- Depecration Warning during rake db:migrate HOT 2
- Asset path issue in Heroku HOT 1
- How do I use this for my own funding project ?
- Add a service of integrate continuous
- Test suite is failing
- have a problem
- is this still being maintained? HOT 3
- Working App??
- Error on loading page
- undefined method `environment' HOT 2
- Microdonation?! HOT 1
- User specified / flexible contribution amount HOT 1
- How do I build it on a 3rd party hosting platform HOT 2
- file gets downloaded in safari
- selfstarter.us website down "Application Error" HOT 1
- Use as an engine? HOT 1
- RSpec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selfstarter.