Karim Moltisanti
Karim Moltisanti

Reputation: 1

" No such file or directory" on ERB-Sinatra in Heroku

i'm doing and app for college in Ruby with Sinatra as frameworks, i'm using erb for templates and in local is everything ok but in heroku gives me that error:

No such file or directory - /app/views/index.erb:

I'm pretty sick of Heroku, all are problems.

Thanks.

Upvotes: 0

Views: 722

Answers (1)

ny95
ny95

Reputation: 710

I ran into a problem like this, my paths were messed up. In your config.ru file or your .rb file, above your sinatra code put:

set :root, './'

This should fix your problem especially because your also having trouble with your models.

Upvotes: 1

Related Questions