jacobobryant / platypub

A publishing platform built with Biff
MIT License
65 stars 13 forks source link

No such file or directory when publishing a site #88

Closed joerter closed 1 year ago

joerter commented 1 year ago

I'm trying out Platypub and trying to publish my site. When I click on publish, platypub encounters an error in generate! when trying to rsync the themes directory. The exact error is saying that the directory created in storage/deploys/{random-uuid} doesn't exist. I can see on my file system that the directory doesn't exist, but the call to io/file in publish should create the directory, right?

I'm sure I'm just doing something wrong here, but if there is a code fix, I would love to take a crack at it if you can point me in the right direction. Thanks!

jacobobryant commented 1 year ago

Hm, looks like rsync won't create nested folders for the destination like I thought it did. It probably works for me because I happened to create the storage/deploys/ folder in some other way while developing platypub; if I deleted it I'd probably get the same error. How about copy this line so it runs right before the rsync and see if that solves the problem? Feel free to submit a PR if so.

joerter commented 1 year ago

Thanks, I'll try it!