How to deploy a modular Sinatra app to Heroku?

∥☆過路亽.° 提交于 2019-12-22 17:59:20

问题


For some reason, I can't access any files in the public dir. Not found error. I'm not putting the public part in the URL, obviously.

View the Lovers source code repository on GitHub.


回答1:


Sweet. I fixed this. After reading about Sinatra Configurations, I added this line to my application class:

set :root, Lovers.root

That worked!



来源:https://stackoverflow.com/questions/4989711/how-to-deploy-a-modular-sinatra-app-to-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!