ventry/bin/setup.sh

24 lines
366 B
Bash
Raw Permalink Normal View History

2023-11-03 20:17:49 +00:00
#!/bin/bash
if [[ -z $1 ]];
then
echo "No argument passed. ./setup.sh {projectName}"
exit;
fi
projectName=$1
currentProjectName=$(cut -d "=" -f 2 docker/.env)
sed -i "s/$currentProjectName/$projectName/g" docker/.env
composer install
cd docker || exit
docker-compose up -d --build
cd ..
rm -rf .git
git init && git add . && git commit -m'Initial Commit'