Spaces:
Paused
Paused
Update entrypoint.sh
Browse files- entrypoint.sh +5 -4
entrypoint.sh
CHANGED
|
@@ -2,10 +2,11 @@
|
|
| 2 |
|
| 3 |
echo "Downloading project from ZIP_URL=$ZIP_URL"
|
| 4 |
curl -L "$ZIP_URL" -o project.zip
|
| 5 |
-
unzip project.zip
|
| 6 |
-
|
| 7 |
-
mv */* . || true
|
| 8 |
-
rm -rf project.zip __MACOSX
|
| 9 |
|
|
|
|
| 10 |
npm install
|
|
|
|
|
|
|
| 11 |
npm run start
|
|
|
|
| 2 |
|
| 3 |
echo "Downloading project from ZIP_URL=$ZIP_URL"
|
| 4 |
curl -L "$ZIP_URL" -o project.zip
|
| 5 |
+
unzip project.zip -d project
|
| 6 |
+
cd project/*/ || cd project # masuk ke folder hasil unzip
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
echo "Installing dependencies..."
|
| 9 |
npm install
|
| 10 |
+
|
| 11 |
+
echo "Starting app..."
|
| 12 |
npm run start
|