summaryrefslogtreecommitdiff
path: root/src/chef/core.clj
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-06-07 13:09:24 +0200
committerTim <contact@bytim.eu>2025-06-07 13:09:24 +0200
commit294f71fb3c5ca3f0fee62e70c9c6a3427a9afc12 (patch)
treea9e0ca6460ce9361b967b42c59572bc053633775 /src/chef/core.clj
parent82da261f168454cd606f4f150313844b9d4b9eea (diff)
downloadchef-294f71fb3c5ca3f0fee62e70c9c6a3427a9afc12.tar.xz
chef-294f71fb3c5ca3f0fee62e70c9c6a3427a9afc12.zip
Add features to upload and delete thumbnails
Diffstat (limited to 'src/chef/core.clj')
-rw-r--r--src/chef/core.clj3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/chef/core.clj b/src/chef/core.clj
index f3422d5..cfe72f9 100644
--- a/src/chef/core.clj
+++ b/src/chef/core.clj
@@ -2,9 +2,12 @@
(:require [org.httpkit.server :as http-server]
[chef.routes :as croutes]
[chef.database :as cdb])
+ (:import java.io.File)
(:gen-class))
(defn -main [& args]
+ (println "Creating thumbnails folder...")
+ (.mkdirs (File. "./thumbnails/"))
(println "Running db patches...")
(cdb/run-patches!)
(println "Starting http server...")