0

I have a project in yesod to load image into a static / image directory. The problem is that when implementing a new version on the production server all the images are lost because the temp folder is removed; My question is how to define external paths to add images, I try whit this but don't work

uploadDirectory :: FilePath
uploadDirectory = ".." </> "pdf"

Or how to prevent keter from creating a new temporary folder each time that deploy a new version

oriaj
  • 768
  • 1
  • 16
  • 33
  • You'd need to specify the location as outside of the keter temporary dictionary. The same will happen if you are deploying with SQLite and locating the DB in your tmp folder. As to how to define the path I'd use an absolute path. – Tehnix Feb 12 '17 at 16:43
  • @Tehnix could you give and example because I'm try with `uploadDirectory = "/home" > "pys" > "Yesod" > "pdf"` but don't work – oriaj Feb 21 '17 at 16:28

0 Answers0