2019-02-19 14:51:34 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-03-21 11:02:12 +00:00
|
|
|
make --no-print-directory format & FORMAT=$!
|
|
|
|
make --no-print-directory lint & LINT=$!
|
|
|
|
npm install git+https://github.com/sharelatex/translations-sharelatex.git#master & TRANSLATIONS=$!
|
2019-10-16 10:10:54 +00:00
|
|
|
|
|
|
|
# CSS
|
|
|
|
make minify & MINIFY=$!
|
|
|
|
# JS
|
|
|
|
npm run webpack:production & WEBPACK=$!
|
2019-03-21 11:02:12 +00:00
|
|
|
|
|
|
|
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
|
2019-10-16 10:10:54 +00:00
|
|
|
wait $MINIFY && echo "Minify complete" || exit 1
|
|
|
|
wait $WEBPACK && echo "Webpack complete" || exit 1
|
2019-02-19 14:51:34 +00:00
|
|
|
|
|
|
|
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/
|