Friday, December 6, 2024

Re: Hosting Recommendations?

You'll get a lot of different views on this.

I've settled on Digital Ocean running Docker after a few iterations. I'm not saying it's the best way to do it but here are my reasons:
  • It's fairly cheap
  • It was easier to set up than I expected. I've shied away from Docker in the past for a relatively small application as it seemed over engineered, but coming back to it I got something running in a few days and it feels very manageable.
  • There are a lot of online resources for this so you should find a tutorial quite easily. DO have quite a few which are obviously specifically relevant if you are hosting with them.
  • If things get messy after a few attempts you can easily just run up a new droplet and you're up and running in a nice clean environment.
  • You can use a local Docker environment which is identical to that which you will deploy for pre-deploy testing and have high confidence that if it works there it will work when you deploy.
  • I managed to automate deployment linked to commits using GitHub actions and again that was relatively straightforward.
A few caveats (based on my experience)
- You have to consider how you manage state between deploys. For example I run some database initialisation scripts which add done standard reference data but I want it to run slightly differently if I'm creating a new environment or deploying to an existing one. It wasn't difficult but there were more nuances than I had considered.
- you have to decide how you will manage settings files for different types of environment. I have settings for dev, staging and live. There are different approaches.
- You need to decide how you are going to manage secrets. API tokens etc. again I found this more fiddly than I expected. I keep my secrets in my GitHub repo's secrets vault but you have to be careful how they get passed around without exposing them.

I'm sure others will have different views so you will need to decide based on your situation but I hope this helps.

Thomas

Sent from my iPhone

On 6 Dec 2024, at 14:58, yaamoussa-solution <yaamoussa02diouf@gmail.com> wrote:



Herku


Le ven. 6 déc. 2024 à 14:20, Konstantinos Dimitropoulos <cdemetropoulos@gmail.com> a écrit :
Pythonanywhere is also cool

Il mer 4 dic 2024, 22:00 Steve Smith <stevesmith0722@hotmail.com> ha scritto:
Hello all!

I'm getting ready to put my project out into the world.  I'm researching hosting options.....and have recently somewhat settled on Digital Ocean...I haven't dug in to start deployment yet....but any recommendations on if this is a solid option or if there are others out there worth considering?  

Thanks in advance.

Steve

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/PH7PR11MB6857966E9F2FB0D704A13011D2372%40PH7PR11MB6857.namprd11.prod.outlook.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/CAOKiqZ%3DSWxg0ZJN%2B1x6UaSotY2thO673_U6cYkEwqW8JUmZHAg%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/django-users/CAPs4bqHe%2BAvEUFZBse7zOOPNbRcoDQWobfde9NYh9UDmPevDmg%40mail.gmail.com.

No comments:

Post a Comment