File size: 384 Bytes
431d841
 
 
74260a2
 
 
 
 
431d841
4ea21cf
431d841
4ea21cf
96c3a94
 
 
4ea21cf
3eb1a09
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

echo "Downloading project from ZIP_URL=$ZIP_URL"
mkdir -p /tmp/project
curl -L "$ZIP_URL" -o /tmp/project.zip
unzip /tmp/project.zip -d /tmp/project

cd $(find /tmp/project -type f -name "package.json" -exec dirname {} \; | head -n 1)

echo "Installing dependencies..."
npm install

echo "Building app..."
npm run build

echo "Starting app..."
export PORT=7860
npm start