Skip to content

Commit

Permalink
Update production deployment config
Browse files Browse the repository at this point in the history
  • Loading branch information
apdavison committed Nov 16, 2023
1 parent 8beb41a commit 6ef7ea7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ebrains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Mirror to EBRAINS

on:
push:
branches: [ master, staging, api-v3 ]
branches: [ master, staging, api-v2 ]

jobs:
to_ebrains:
Expand All @@ -26,9 +26,9 @@ jobs:
uses: wei/git-sync@v3
with:
source_repo: "HumanBrainProject/hbp_neuromorphic_platform"
source_branch: "api-v3"
source_branch: "api-v2"
destination_repo: "https://ghpusher:${{ secrets.EBRAINS_GITLAB_ACCESS_TOKEN }}@gitlab.ebrains.eu/neuromorphic/job-queue-api.git"
destination_branch: "api-v3"
destination_branch: "api-v2"
- name: synctags
uses: wei/git-sync@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_simqueue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test simqueue API

on:
push:
branches: [ "api-v3" ]
branches: [ "master" ]

permissions:
contents: read
Expand Down
2 changes: 2 additions & 0 deletions api/deployment/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ COPY requirements.txt.lock $SITEDIR/
RUN pip3 install -r $SITEDIR/requirements.txt.lock

COPY simqueue $SITEDIR/simqueue
RUN mkdir -p $SITEDIR/tmp_download
RUN chmod a+w $SITEDIR/tmp_download

ENV PYTHONPATH /home/docker:/home/docker/site:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3.9/dist-packages

Expand Down
4 changes: 4 additions & 0 deletions api/deployment/nginx-app-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ server {
alias /home/docker/site/static;
}

location /tmp_download {
alias /home/docker/site/tmp_download;
}

}

0 comments on commit 6ef7ea7

Please sign in to comment.