"NotFound: No such file or directory" on Deno Deploy
michal-weglarz opened this issue · 2 comments
michal-weglarz commented
michal-weglarz commented
Well, fortunately it didn't take long to find out what happened - I deployed the blog with an empty posts
directory and no .md
file whatsoever, what caused the above issue to occur.
Maybe it would be a nice idea to improve handling of this error, especially if it's not present when in dev mode.
When run locally without --dev
flag and with empty posts
dir, I only saw the following error: No such file or directory (os error 2), stat '/Users/michalweglarz/Code/deno-blog/hmr.js'
, but it's not really that helpful.
ebrahimkarimi commented
I think you have to deploy your where you compile it because it searches for posts directory in the place where compiling happens!