Spaces:
Runtime error
Runtime error
Create start.sh
Browse files
start.sh
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
git clone https://github.com/Twan07/BEupload.git .
|
| 3 |
+
npm install
|
| 4 |
+
npm install cross-blob
|
| 5 |
+
npm install node-fetch
|
| 6 |
+
npm i --save-dev @types/busboy
|
| 7 |
+
npm i --save-dev @types/uuid
|
| 8 |
+
npm i --save-dev @types/unidecode
|
| 9 |
+
npm ci --production
|
| 10 |
+
|
| 11 |
+
echo "nameserver 8.8.8.8" > /tmp/resolv.conf
|
| 12 |
+
|
| 13 |
+
echo "nameserver 1.1.1.1" >> /tmp/resolv.conf
|
| 14 |
+
|
| 15 |
+
sudo sh -c 'echo -e "nameserver 1.1.1.1\nnameserver 8.8.8.8" > /etc/resolv.conf'
|
| 16 |
+
|
| 17 |
+
cat /etc/resolv.conf
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
node index
|