Use home directory for virtualenv
This commit is contained in:
parent
581b70f40b
commit
f34f664392
1 changed files with 5 additions and 1 deletions
|
|
@ -7,13 +7,17 @@ pkgs.mkShell {
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = let
|
shellHook = let
|
||||||
|
venvPath = "$HOME/.venv/homepage";
|
||||||
remoteHost = "personal-vps";
|
remoteHost = "personal-vps";
|
||||||
in ''
|
in ''
|
||||||
|
# Set uv to use specific virtual environment path
|
||||||
|
export UV_PROJECT_ENVIRONMENT=${venvPath}
|
||||||
|
|
||||||
# Install dependencies with uv
|
# Install dependencies with uv
|
||||||
uv sync ${if dev then "--group dev" else ""}
|
uv sync ${if dev then "--group dev" else ""}
|
||||||
|
|
||||||
# Activate the virtual environment
|
# Activate the virtual environment
|
||||||
source .venv/bin/activate
|
source ${venvPath}/bin/activate
|
||||||
|
|
||||||
python generate.py
|
python generate.py
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue