mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
26190da566
Compile CSS using webpack GitOrigin-RevId: 489834038667dde572ea5d9b4b9392b362259a09
24 lines
725 B
Bash
Executable file
24 lines
725 B
Bash
Executable file
#!/bin/bash
|
|
|
|
make --no-print-directory format & FORMAT=$!
|
|
make --no-print-directory lint & LINT=$!
|
|
npm install git+https://github.com/sharelatex/translations-sharelatex.git#master & TRANSLATIONS=$!
|
|
|
|
npm run webpack:production & WEBPACK=$!
|
|
|
|
echo "Waiting for lint, format, translations and minify to finish"
|
|
|
|
wait $LINT && echo "Lint complete" || exit 1
|
|
wait $FORMAT && echo "Format complete" || exit 1
|
|
wait $TRANSLATIONS && echo "Translations install complete" || exit 1
|
|
wait $WEBPACK && echo "Webpack complete" || exit 1
|
|
|
|
chmod -R 0755 /app/public
|
|
chown -R node:node /app/public
|
|
|
|
set -B
|
|
|
|
rm -rf /app/data
|
|
mkdir -p /app/data/{dumpFolder,logs,pdf,uploads,zippedProjects}
|
|
chmod -R 0755 /app/data/
|
|
chown -R node:node /app/data/
|