diff libervia/server/constants.py @ 1257:1ec41ac1e7cf

server: seperation between production build dir and dev build dir: LiberviaRootResource instances's `build_path` is the path where generated files are put and served by the HTTP server, while `dev_buid_path` is used for temporary files/libraries needed for the generation/compilation of files.
author Goffi <goffi@goffi.org>
date Sun, 03 May 2020 18:25:11 +0200
parents 6d49fae517ba
children 334d044f2713
line wrap: on
line diff
--- a/libervia/server/constants.py	Sun May 03 18:15:22 2020 +0200
+++ b/libervia/server/constants.py	Sun May 03 18:25:11 2020 +0200
@@ -36,8 +36,13 @@
     TASKS_DIR = "tasks"
     LIBERVIA_CACHE = "libervia"
     SITE_NAME_DEFAULT = "default"
+    # generated files will be accessible there
     BUILD_DIR = "__b"
     BUILD_DIR_DYN = "dyn"
+    # directory where build files are served to the client
+    PRODUCTION_BUILD_DIR = "sites"
+    # directory used for files needed temporarily (e.g. for compiling other files)
+    DEV_BUILD_DIR = "dev_build"
 
     TPL_RESOURCE = '_t'