mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 00:47:53 +00:00
debug branch build (#507)
This commit is contained in:
1 parent
14aa429878
commit
289ef6f352
1 file changed
+53
-6
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euxo pipefail
|
||||
#set -euxo pipefail
|
||||
|
||||
# echo "Run build script"
|
||||
# npm install
|
||||
@@ -23,27 +23,74 @@ set -euxo pipefail
|
||||
# # echo "List files after build"
|
||||
# # find dist/
|
||||
|
||||
#printf "==================================="
|
||||
#echo "List Env"
|
||||
#env
|
||||
|
||||
printf "==================================="
|
||||
echo "Run build script (TODO: Make strict)"
|
||||
nx build editor3d
|
||||
|
||||
echo "Change to project dir"
|
||||
pushd apps/editor3d/
|
||||
printf "==================================="
|
||||
echo "Current dir (1)"
|
||||
pwd
|
||||
|
||||
echo "List directory files"
|
||||
printf "==================================="
|
||||
echo "List directory files (1)"
|
||||
pwd
|
||||
ls -lA .
|
||||
|
||||
echo "List build directory files"
|
||||
printf "==================================="
|
||||
echo "List directory files (2)"
|
||||
#find / | grep build/server
|
||||
find / 2> /dev/null | grep build/server
|
||||
|
||||
|
||||
printf "==================================="
|
||||
echo "LIST DIRECTORY FILES (3)"
|
||||
#find / | grep build/server
|
||||
find / 2> /dev/null | grep EnvironmentVar
|
||||
find / 2> /dev/null | grep PageEnigma
|
||||
|
||||
|
||||
printf "==================================="
|
||||
echo "Find build manifest"
|
||||
find . | grep manifest.json
|
||||
|
||||
printf "==================================="
|
||||
echo "Change to project dir"
|
||||
pushd apps/editor3d/
|
||||
|
||||
printf "==================================="
|
||||
echo "Current dir (2)"
|
||||
pwd
|
||||
|
||||
printf "==================================="
|
||||
echo "List directory files (4)"
|
||||
pwd
|
||||
ls -lA .
|
||||
|
||||
printf "==================================="
|
||||
echo "List build directory files"
|
||||
ls -lA build/
|
||||
|
||||
mkdir dist/
|
||||
|
||||
printf "==================================="
|
||||
echo "Copy files"
|
||||
cp -r build/server/* dist/
|
||||
cp -r build/client/* dist/
|
||||
|
||||
#echo "Copy netlify configs into dist"
|
||||
#cp _headers dist/
|
||||
cp _headers dist/
|
||||
#cp _redirects dist/
|
||||
|
||||
#echo "Copy netlify 404.html page into dist"
|
||||
#cp "404.html" dist/
|
||||
|
||||
|
||||
printf "==================================="
|
||||
echo "List files after build"
|
||||
find dist/
|
||||
|
||||
|
||||
Reference in new issue
Block a user