You will send your sources to the servedr, And you have no problem with that.
In fact you have the wrong concerns - and since your question only has two lines, I cannot understand which concepts you still need to see.
But applications in Javascript, PHP, Python and Ruby together must be over 95% of the entire Web - and in all of them the source code is on the server - and anyone who can access the server with a user who has access to the files can read the source code.
One concept you may not have studied well enough is precisely that of whosoever has access to the server, and even though it is a server with several users, it is possible to restrict the reading of the files only to the owner of the same and to the super-user.
More recently, however, have popularized the rival virtual servers, or even containers, in which, at the same cost of hosting, you may be the only person with access to the server (and therefore to the source code) - is the case of machines running on Amazon, in Redhat’s Openshift, Heroku, and Digital Ocean, among dozens of other providers.
The old model, widely used in Brazil for PHP projects, in which the client earned a user account on a shared server and only had access via FTP, is not used to publish projects in Python, in which access to the shell is, in general, necessary. But even in such cases access to source files is restricted to the account’s title.
As for how to put your project into production, the recommendation is to look for this in the documentation of the projects you are using, or the hosting service you hire - since it is a very broad subject, and there is no way to address in a single question answer here.
In essence no, I thought this issue was already overcome. Today almost all languages can be reverted to the source even without having the sources. C, C++, Rust and a few others aren’t easy yet, but it can be reversed with a little effort and acceptance that won’t be as good. But if you still think this is very important you can throw away everything you’ve done and do in any of these languages, hold on a little longer. Someone will say that there’s like, it’s just a way to outshine a little, it doesn’t protect anything, if someone really wants to see what you did she’ll do normally.
– Maniero