simplify nix shell
This commit is contained in:
parent
c7fa394ab9
commit
d09394f0e3
1 changed files with 1 additions and 7 deletions
|
|
@ -8,7 +8,6 @@ pkgs.mkShell {
|
||||||
|
|
||||||
shellHook = let
|
shellHook = let
|
||||||
venvPath = "$HOME/.venv/homepage";
|
venvPath = "$HOME/.venv/homepage";
|
||||||
remoteHost = "vps";
|
|
||||||
in ''
|
in ''
|
||||||
# Set uv to use specific virtual environment path
|
# Set uv to use specific virtual environment path
|
||||||
export UV_PROJECT_ENVIRONMENT=${venvPath}
|
export UV_PROJECT_ENVIRONMENT=${venvPath}
|
||||||
|
|
@ -21,13 +20,8 @@ pkgs.mkShell {
|
||||||
|
|
||||||
# Define aliases
|
# Define aliases
|
||||||
alias serve="python generate.py && python watch.py"
|
alias serve="python generate.py && python watch.py"
|
||||||
alias build="python generate.py"
|
|
||||||
alias sync="python generate.py && rsync -avP --delete ./dist/* ${remoteHost}:~/www/homepage"
|
|
||||||
|
|
||||||
echo "Available commands:"
|
echo "Available commands:"
|
||||||
echo " serve - Watch and rebuild on changes (dev mode)"
|
echo " serve - Watch and rebuild on changes"
|
||||||
echo " build - Generate the static site"
|
|
||||||
echo " sync - Build and sync with remote production server"
|
|
||||||
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue