2022-06-16 21:38:24 +02:00
|
|
|
#!/bin/bash
|
|
|
|
dir=$(pwd)
|
2022-06-21 18:56:55 +02:00
|
|
|
declare -a keep=("dist" "package.json" "yarn.lock" "client" "builder" "build" "pm2.config.js" "docker_run.sh")
|
|
|
|
for moveDir in "${keep[@]}"
|
|
|
|
do
|
|
|
|
mv $moveDir / 2>/dev/null
|
|
|
|
done
|
2022-06-16 21:38:24 +02:00
|
|
|
cd /
|
|
|
|
rm -r $dir
|
|
|
|
mkdir $dir
|
2022-06-21 18:56:55 +02:00
|
|
|
for keepDir in "${keep[@]}"
|
|
|
|
do
|
|
|
|
mv /$keepDir $dir/ 2>/dev/null
|
|
|
|
done
|
2022-06-16 21:38:24 +02:00
|
|
|
cd $dir
|
|
|
|
NODE_ENV=production yarn
|