How to deploy a modular Sinatra app to Heroku?

2019-05-18 13:36发布

问题:

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!