Skip to content

Commit

Permalink
fix(/app/secrets.json): file missing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom JEANNESSON committed Jan 7, 2024
1 parent c0123b0 commit 9caa5e4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
7 changes: 6 additions & 1 deletion backend/docker/compose/production/django/start
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@ python /app/manage.py makemigrations
python /app/manage.py migrate
python /app/manage.py collectstatic --noinput


cat << EOF > /app/secrets.json
{
"Exchange Accounts": {
}
}
EOF
/usr/bin/litestream replicate
7 changes: 7 additions & 0 deletions backend/docker/setup-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,3 +138,10 @@ cp backend/.envs/.production/.django provisionEB/.envs/.django
cp backend/.envs/.production/.litestream provisionEB/.envs/.litestream
cp -r backend/deploy/aws/.ebextensions/ provisionEB/.ebextensions/
cp -r backend/deploy/aws/.platform/ provisionEB/.platform/


export AWS_ACCESS_KEY_ID=AKIARCHIHSHVQ4WEY55R
export AWS_S3_BUCKET_URI=s3://napse-eb-bucket/litestream
export AWS_SECRET_ACCESS_KEY=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
export DJANGO_SECRET_KEY=django-secret-key
docker compose -f provisionEB/docker-compose.yml up --build

0 comments on commit 9caa5e4

Please sign in to comment.