work in progress [might break]

This commit is contained in:
Leon
2022-02-22 18:33:46 +01:00
parent 48f950cf2e
commit 10fd8522d0

View File

@@ -27,10 +27,8 @@ envset(){ # envset [git@server] [app] [FOO=bar] : shows or sets [remote] environ
}
ensure_file_env(){
test -f .env || {
echo "export PORT=$(awk 'BEGIN{ srand(); print int(rand()*1000)+8000 }')" > .env
echo "export PORT=$(awk 'BEGIN{ srand(); print int(rand()*1000)+8000 }')" >> .env
git add .env && git commit -m "podi: adding .env file"
}
}
on checkout envfile