Answer the question
In order to leave comments, you need to log in
Do I understand the basic deployment algorithm correctly?
There will probably be a tough stupidity, please don’t kick me) I’m just studying deploy and git, as I’ve recently been on the web and programming in general.
Reading TDD with Python. Starting from chapter 8, to move forward, you need to have a server that meets the following conditions:
- Your server is running Ubuntu 14.04 (aka "Trusty/LTS")
- You have root access to it.
- It's on the public Internet.
- You can SSH into it.
Do I understand correctly that if I create an account, say, on digitalocean and have a droplet there, then I will have all this? It’s just that you have to pay there and I don’t want to just throw money away.
And in general, I want to understand the deployment process as a whole, otherwise all the manuals start right with setting up the server, not to mention how, in fact, to get hold of this very server. Apparently, this is damn obvious, and explaining such elementary things to any babies is unnecessary =)
What I now understand (or think I understand):
1) At DO, I sort of rent a computer that will be my server, right? Then I install, say, nginx there, and spend a couple of nights and a lot of nerves on setting it up.
2) It will be necessary to upload the sources of my project to the server, for example, by cloning the repository from github. And install dependencies + deal with statics. nginx itself should distribute statics, not django (I use this framework), since it is more efficient.
3) This server will have an IP address through which it will be available to the 'outside world', and it will be possible to bind this IP to the purchased domain.
4) To communicate with the server, it is better to have Linux on the local machine.
It's like that? No details, of course.
I know that there are simple options without all this pandemonium that are suitable for 'playing around'. For example, pythonanywhere. I already tried to throw my project there, everything works, but, of course, that's not it. You need to understand the basics.
It's just that in this book the author does not say anything about this, he also goes straight to setting up the server there.
Answer the question
In order to leave comments, you need to log in
1) On DO, I sort of rent myself a computer that will be my server, right? Then I install, say, nginx there, and spend a couple of nights and a lot of nerves on setting it up.
It's still worth kicking your feet... Instead of inventing some strange schemes, take and install the server on a virtual machine. At the same time, learn how to deploy linux.
Look at mne.ru, there are 2 virtual machines there. 256mb ram - 90r / month, 512 - about 170
AWS is completely free. Yes, and experience with Amazon will be useful.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question