fix missing index_settings.json file in api dockerfile for creating elastic index (#363)

This commit is contained in:
Hongbo Wu
2022-04-01 13:07:44 +08:00
committed by GitHub
parent 99f73f821f
commit 250118de45
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ COPY --from=builder /app/packages/api/package.json /app/packages/api/package.jso
COPY --from=builder /app/packages/api/node_modules /app/packages/api/node_modules
COPY --from=builder /app/node_modules /app/node_modules
COPY --from=builder /app/package.json /app/package.json
COPY --from=builder /app/packages/api/index_settings.json /app/packages/api/index_settings.json
EXPOSE 8080

View File

@ -4,4 +4,4 @@ psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "CREATE USER app_user WITH PASSWOR
echo "created app_user"
yarn workspace @omnivore/db migrate
psql --host $PG_HOST -U $PG_USER -d $PG_DB -c "GRANT omnivore_user TO app_user;"
echo "granted omnivore_user to app_user"
echo "granted omnivore_user to app_user"