Hello, I have a django app deployed in DO. Currently I have 3 customers, so I created 3 different droplets. Its ok for now but I may have another 3-4 customers signing up in next few days and I expect it to grow 3-4 customers every month. I would really appreciate if someone could help me to figure out:
Everytime when i have a new customer, Just take snapshot of one of the existing droplet and deploy that snapshot to new droplet and just change server_name in nginx file. Does it works? Currently everytime I have a customer i follow this https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 . There should be some easy way as it’s same app with same database structure (Postgress) just for different customer
Most of my customers aren’t using all the resources. for example my each droplet has 1TB data transfer and max data transfer i am using in last 3 months is 2GB. I have 3 droplets and in a billing it says you have used 2GB of 3000GB data last month. I read that i can host multiple django in one droplets, should i consider this approach?
I think any option I select from above, at the end i have to to git pull, restart server for each project. Is there any better alternatives that i can just to git pull, django migrate in a single place. (I am also looking at django-tenant)
I would really appreciate if anyone could direct me or let me know what should i look for or read for.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $100 of credit to try our products over 60 days!