Here is my simple app:
class Blog < E
map '/'
# actions goes here
end
app = EApp.new do
# assets_url '/', true
mount Blog
end
app.run server: :Thin, Port: 6040
It works well until i uncomment assets_url '/', true.
If i do so, all my routes returning 404 and only routes pointing to files in assets folder works.
Any ideas?
Everything looks correct except assets URL.
You are mounting your app and assets server on same URL –
/Assets server has precedence, thus your app routes wont work.
Simply mount your assets on a corresponding URL,
/assets,/static,/etcUPDATE: as of version 0.4.6, assets server moved to Espresso Lungo
So install
elgem –$ gem in el– or add it toGemfile–gem "el"