This commit is contained in:
2023-12-12 12:47:58 -03:00
parent f597d552be
commit f362054ea7
7 changed files with 36 additions and 0 deletions

17
install.sh Normal file
View File

@ -0,0 +1,17 @@
#!/bin/bash
#docker run --rm -it -v ${PWD}/app:/app composer install
#docker run --rm -it -v ${PWD}/cli:/app composer install
find ./app -name "*.env.sample" | cat -n | while read n f; do
echo ./app/"$n"
#cp "$f" ./app/"$n"
done
#cp ./cli/.env.sample ./cli/.env
#cp ./.env.sample ./.env
#echo "API_KEY=$(docker run --rm -it nginx openssl rand -hex 64)" > ./.key.env
#printf "MYSQL_ROOT_PASSWORD=%s\nMYSQL_DATABASE=incoviba\nMYSQL_USER=incoviba\nMYSQL_PASSWORD=%s" "$(docker run --rm -it nginx openssl rand -hex 16)" "$(docker run --rm -it nginx openssl rand -hex 64)" > ./app/.db.env