fix: photo path

main
w2 4 years ago
parent d197206ec8
commit e19e2de1a3

@ -43,6 +43,8 @@ RUN sed --in-place \
$BACKEND_LOCATION/photovoter_backend/config.py && \
sed --in-place \
--expression "s#app = FastAPI()#app = FastAPI(servers=[{'url': 'http://$DOMAIN/api/v1'}])#" \
# Hotpatching relative path instead of absolute one
--expression 's#return {"picture_id": r\["imgid"\], "picture_uri": r\["resizedpath"\]}#return {"picture_id": r\["imgid"\], "picture_uri": r\["resizedpath"\].split("/")[-1]}#'\
$BACKEND_LOCATION/photovoter_backend/main.py

Loading…
Cancel
Save