You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Hi everybody.
When I opened this week's Sentry report, I noticed many Invalid HTTP_HOST header from Django CORSMiddleware. I realised that we need to create a separate development and production environment, probably using different domains?
Does anybody else have experience implementing this?
Proposed solution
Create env variable in the frontend container for DEPLOYMENT_ENV={DEV or PRODUCTION}
The production environment will have the wocchit.com url, meanwhile the dev environment can use localhost url to your dev machine that you specify yourself?
Why use this solution?
Keeps the development on a local computer using a single docker-compose.yml file
I don't have to pay for cloud costs and I own the data in Teaser when I can keep the production deployment on a machine I own (disregarding bunny.net).
Gonna do some research on if this is the correct way of implementing this. Would love to hear your opinions on this implementation.
The text was updated successfully, but these errors were encountered:
If you are forking this repository and hosting Teaser on your own production domain, change all mentions of wocchit.com to your domain.
For your dev environment, you can replace wocchit.com with the IP of the computer that is hosting the backend server. You need to rebuild the frontend into an apk using the command npx eas build --platform android --profile development in the frontend container
Local dev environments
https://memefeed.atlassian.net/browse/TSR-63?atlOrigin=eyJpIjoiMzUxYmVkMDA0ODg1NGRlZjk5MmU0MjVmNTA5NGI1YTUiLCJwIjoiaiJ9
Hi everybody.
When I opened this week's Sentry report, I noticed many
Invalid HTTP_HOST header
from Django CORSMiddleware. I realised that we need to create a separate development and production environment, probably using different domains?Does anybody else have experience implementing this?
Proposed solution
wocchit.com
url, meanwhile the dev environment can use localhost url to your dev machine that you specify yourself?Why use this solution?
docker-compose.yml
fileGonna do some research on if this is the correct way of implementing this. Would love to hear your opinions on this implementation.
The text was updated successfully, but these errors were encountered: