This commit is contained in:
parent
991a487210
commit
048def6a0b
1 changed files with 11 additions and 0 deletions
11
shell.nix
11
shell.nix
|
|
@ -132,5 +132,16 @@ pkgs.mkShell {
|
||||||
echo " app Laravel + Vite http://localhost:8001"
|
echo " app Laravel + Vite http://localhost:8001"
|
||||||
echo " db MariaDB localhost:3308"
|
echo " db MariaDB localhost:3308"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
# ===================
|
||||||
|
# AUTO-START PROMPT
|
||||||
|
# ===================
|
||||||
|
if [ -f "$COMPOSE_FILE" ] && [ -t 0 ]; then
|
||||||
|
read -p "Start development containers? (y/N) " -n 1 -r
|
||||||
|
echo
|
||||||
|
if [[ $REPLY =~ ^[Yy]$ ]]; then
|
||||||
|
dev-up
|
||||||
|
fi
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue