From b283748c42320d20040fa1e087524f90cdb0aa9a Mon Sep 17 00:00:00 2001 From: Ivan Diaz Date: Sat, 20 Oct 2018 16:21:50 -0300 Subject: [PATCH] upgrade build command --- build.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index e845ed34..e25e4910 100755 --- a/build.sh +++ b/build.sh @@ -4,8 +4,10 @@ gulp prod --api rm build/index.html echo "2/3 Creating api folder..." cd ../server -rm -rf files -mkdir files +mkdir files2 +mv files/.htaccess files2 +rm -rf files/ +mv files2 files cd .. mkdir api cp server/index.php api @@ -17,8 +19,7 @@ cp -R server/data api cp -R server/libs api cp -R server/models api cp -R server/vendor api -mkdir api/files -touch api/files/.keep +cp -R server/files api echo -n > api/config.php chmod -R 755 . echo "3/3 Generating zip..."