124488448 / start.sh
Twan07's picture
Update start.sh
156adf4 verified
raw
history blame contribute delete
410 Bytes
#!/bin/bash
# Clone and install dependencies
git clone "$REPO" .
npm install
npm install cross-blob node-fetch
npm i --save-dev @types/busboy @types/uuid @types/unidecode
npm ci --production
# Node tuning
export NODE_OPTIONS="
--max-old-space-size=4096
--max-semi-space-size=1024
--initial-old-space-size=2048
--expose-gc
"
export NODE_ENV=production
# Run server
node --enable-source-maps index.js