diff --git a/.env.defaults b/.env.defaults index 661e585..ea98216 100644 --- a/.env.defaults +++ b/.env.defaults @@ -1,4 +1,4 @@ PORT = 8000 GRAB_SYMLINKS = true -SYMLINKS_DIR = "symlinks" +SYMLINK_DIR = "symlinks" STATIC_SHARE_RESTRICTION = true \ No newline at end of file diff --git a/serve.py b/serve.py index 83f50fe..89dfc4b 100644 --- a/serve.py +++ b/serve.py @@ -31,7 +31,7 @@ def get_project_directory(project_id): if GRAB_SYMLINKS and not os.path.exists(project_dir): # If the project does not exist in the projects dir, check if it exists in the symlinks dir if not os.path.exists(SYMLINK_DIR) or not os.path.isdir(SYMLINK_DIR): - return None + return "" # Find the symlink directory that starts with the project_id symlink_dirs = [d for d in os.listdir(SYMLINK_DIR) if os.path.isdir(os.path.join(SYMLINK_DIR, d))] # Sort by last modified time (descending)