Skip to content

Commit

Permalink
fix airlock
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Apr 11, 2024
1 parent d82ca09 commit 625ded4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/src/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ async def upload_cohort(
try:
g = load_cohort_dict_file(metadata_path, cohort_id)
# Airlock preview setting goes to mapping graph because it is defined in the explorer UI
delete_existing_triples(get_cohort_mapping_uri(cohort_id), f"<{get_cohort_uri(cohort_id)!s}>", "icare:previewEnabled")
g.add((get_cohort_uri(cohort_id), ICARE.previewEnabled, Literal(str(airlock).lower(), datatype=XSD.boolean), get_cohort_mapping_uri(cohort_id)))
# Delete previous graph for this file from triplestore
delete_existing_triples(get_cohort_uri(cohort_id))
Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ "$1" = "--no-cache" ]; then
echo "📦️ Building without cache"
ssh ids2 'cd /data/deploy-services/cohort-explorer ; git pull ; docker compose -f docker-compose.prod.yml build --no-cache ; docker-compose -f docker-compose.prod.yml down ; docker compose -f docker-compose.prod.yml up --force-recreate -d'
ssh ids2 'cd /data/deploy-services/cohort-explorer ; git pull ; docker compose -f docker-compose.prod.yml build --no-cache ; docker compose -f docker-compose.prod.yml down ; docker compose -f docker-compose.prod.yml up --force-recreate -d'
else
echo "♻️ Building with cache"
ssh ids2 'cd /data/deploy-services/cohort-explorer ; git pull ; docker compose -f docker-compose.prod.yml up --force-recreate --build -d'
Expand Down

0 comments on commit 625ded4

Please sign in to comment.