This commit is contained in:
Yann Esposito (Yogsototh) 2021-08-21 22:34:51 +02:00
parent 11fce6a2b1
commit 8081c2c1f8
Signed by untrusted user who does not match committer: yogsototh
GPG Key ID: 7B19A4C650D59646
3 changed files with 6 additions and 6 deletions

View File

@ -84,7 +84,7 @@ ALL += index
ENV_VARS := ./engine/envvars.sh
NIX_FILES := ./shell.nix $(shell find nix -type f)
$(ENV_VARS): $(NIX_FILES)
echo "export PATH=\"${PATH}\"" >> ./engine/envvars.sh
@echo "export PATH=\"${PATH}\"" >> ./engine/envvars.sh
ALL += ./engine/envvars.sh
# RSS
@ -176,5 +176,6 @@ deploy: $(ALL)
.PHONY: clean
clean:
-[ -f $(ENV_VARS) ] && rm $(ENV_VARS)
-[ ! -z "$(DST_DIR)" ] && rm -rf $(DST_DIR)/*
-[ ! -z "$(CACHE_DIR)" ] && rm -rf $(CACHE_DIR)/*

View File

@ -1,5 +1,6 @@
#!/usr/bin/env zsh
cd "$(git rev-parse --show-toplevel)" || exit 1
[[ -f ./engine/envvars.sh ]] || make ./engine/envvars.sh
source ./engine/envvars.sh
direnv reload
./engine/build.sh

View File

@ -1,6 +1,4 @@
#!/bin/bash
set -e
tmux \
new-session './engine/serve.sh' \; \
split-window './engine/auto-build.sh' \;
#!/usr/bin/env zsh
tee >(lorri watch) >(./engine/serve.sh) >(./engine/auto-build.sh) >(sleep 1 && open 'http://127.0.0.1:3000')