run migrate on restart

This commit is contained in:
aptalca
2021-04-13 09:37:48 -04:00
parent c9751a38e9
commit da45adac0b
4 changed files with 15 additions and 12 deletions

View File

@@ -15,10 +15,10 @@ ENV \
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
curl \
g++ \
make \
python2 && \
curl \
g++ \
make \
python2 && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
nodejs \

View File

@@ -15,10 +15,10 @@ ENV \
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
curl \
g++ \
make \
python2 && \
curl \
g++ \
make \
python2 && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
nodejs \

View File

@@ -15,10 +15,10 @@ ENV \
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
curl \
g++ \
make \
python2 && \
curl \
g++ \
make \
python2 && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
nodejs \

View File

@@ -17,6 +17,9 @@ if [ ! -f "/config/env" ]; then
cd /app/heimdall
npm run db:migrate
npm run db:seed
else
cd /app/heimdall
npm run db:migrate
fi
# permissions