mirror of
https://github.com/coderofsalvation/podi.git
synced 2025-12-16 20:07:44 +01:00
work in progress [might break]
This commit is contained in:
@@ -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
|
||||
git add .env && git commit -m "podi: adding .env file"
|
||||
}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user