Serving static files with Sinatra

后端 未结 14 1770
渐次进展
渐次进展 2020-11-29 16:38

I have one page website only using HTML, CSS and JavaScript. I want to deploy the app to Heroku, but I cannot find a way to do it. I am now trying to make the app working wi

14条回答
  •  再見小時候
    2020-11-29 16:39

    the sinatra-assetpack gem offers a whole bunch of features. syntax is sweet:

    serve '/js', from: '/app/javascripts'
    

    while i am still having issues with rails assets pipeline i feel like i have much more control using sinatra-assetpack - but most of the times it just works with a few lines of code.

提交回复
热议问题