Replies: 5 comments 4 replies
-
I'm deploying on a VPS with github workflow. I following this documentation On VPS server you have to :
To not store secret on server or on .env, I prefered to add secrets in Github UI through actions variables used by https://github.com/fastapi/full-stack-fastapi-template/blob/master/.github/workflows/deploy-production.yml |
Beta Was this translation helpful? Give feedback.
-
BACKEND ENV VARIABLES BACKEND_CORS_ORIGINS https://full-stack-fastapi-template-xxxxx.onrender.com, ENVIRONMENT FIRST_SUPERUSER <- i believe this is from backend settings FRONTEND_HOST <- your website POSTGRES_DB <- get this from db setup POSTGRES_SERVER dpg-cvp6abuuk2gs7xxxxxx-a.xxxxxx-postgres.render.com PROJECT_NAME whatever you want SECRET_KEY <- your secret key from .env file i think. Dont think this is even used but i have it |
Beta Was this translation helpful? Give feedback.
-
DB will have no Env Variables |
Beta Was this translation helpful? Give feedback.
-
FRONTEND youll use the Url of the backend something like |
Beta Was this translation helpful? Give feedback.
-
thanks a million Chris, that will help me so much! One final question: Have
you split the backend and front end into different Github repositories, or
can you keep everything in the same repo?
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Ive been developing locally for months on this stack and now that its time to deploy im having a bit of a nightmare.
Can anyone tell me where they host it and what kind of a setup you have so at least i know im heading in the right direction?
Thanks
Operating System
Linux
Operating System Details
Mac
Python Version
Python 3.9.6
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions