In every (or almost every) project that relies on internet communication, there comes a moment when the next step is deploying the application to a server or servers. This is usually a stage full of emotions, though unfortunately not only positive ones. It is easy to imagine software that was carefully built on the developers' local machines and tested on a staging server, yet runs into problems in the production configuration. So the whole idea is to counteract and even prevent such cases. How? For example, by asking about the server early on.
In this text we will look at the points that a software house should tick off already at the early stage of the work (especially during analysis) regarding the target environment for an IT system. Along the way, we will also say what to pay attention to when talking about this with the client. The text is aimed also at software buyers, who should be aware of their role in preparing the server infrastructure for the IT company that deploys the software.
You can read about when we need a server at all and what types there are in another article of ours.
When should you start talking about the server?
As early as possible! We have written on the blog many times that it is worth deciding on the server (or at least narrowing it down) in the early stages because of technical considerations. When planning the software architecture, developers need to know which solutions they can afford because the target environment can handle them, and which will be out of reach. There is nothing worse than building a system in, say, Node.js and then getting a server that supports only PHP.
But the technical side is also tied to the business side. Depending on the solutions, integrations, infrastructure and so on, you will need an appropriate budget. From the client's point of view, these matters should be cleared up as early as possible, already at the estimation stage, because the client has to be aware of the costs required to deliver the user stories and other agreements made during analysis. Of course, you cannot predict everything 100% from the very beginning, but you can save a lot of time and nerves by approaching these topics honestly from the start. There is nothing worse for a client than finding out in the middle of deployment that the server the application will run on costs much more than expected.
The IT company's server or the client's?
This is another important question. Let us say one thing up front: most software development contracts assume that the cost of the server and its later maintenance is NOT included in the estimate covered by the contract. Of course, the cost estimate may already include fees for server infrastructure, but then this is stated explicitly and for a specific scope.
Software deployment usually works like this: the client buys a server based on the software house's guidance and hands over the access details so the IT team can carry on. There are also situations where the software house has its own servers and offers hosting on them. The advantage is of course that everything is in one place, and it is also easier for developers to deploy the system in such a controlled environment. The drawback is that few IT companies have this in their offer, because maintaining software and maintaining server infrastructure are two completely different things that need different teams. We will write about that later today.
It may also happen that the client already has a server and assumes the application will be deployed on it. This is of course cost-effective for the client: if they have already paid for a service, why not use it? In this case, however, it is the software house's duty to find out exactly what that hosting offers.
What does a software house need to know about the client's hosting?
When the client offers their own hosting (server) for the system, the IT company most often needs to find out the following (examples of answers are in parentheses):
- which operating system is installed on it (in theory we should expect Linux, but it is worth making sure),
- which HTTP server is installed on it (e.g. Apache 2, NGINX),
- if a PHP interpreter is needed, which version is available (5.6, 7.1, 7.3, 7.4, 8.0 and others),
- whether other servers, programs, interpreters and so on can be installed (e.g. Node.js, Git),
- what kind of access to the server is possible (FTP/SFTP only, SSH console),
- what security the server has (password, SSH key only, VPN tunnel and so on),
- what permissions the person deploying will have (e.g. root rights),
- which database management system is used and in which version (e.g. MySQL 5.7),
- how the database can be accessed (console, phpMyAdmin and so on),
- whether it will be possible to run a service that uses a specific port (e.g. a WebSocket server),
- whether a domain pointing to this server is needed and has been purchased,
- whether it will be possible to create subdomains, e.g. sub1.domain.com, sub2.domain.com (e.g. to set up test versions or several backends),
- where the server is physically located, which can matter for integrations, especially those that send sensitive data,
- whether the server also provides a mail server that can be used for sending emails from the application,
- whether a firewall is in place and whether any ports are blocked,
- whether an SSL certificate can be installed (for HTTPS sites),
- whether it is possible to run cron.
Of course, this is probably not a complete list, but the points above are a good signpost not only when talking to the client about their current hosting, but also when choosing a new one and defining what the server has to be able to do for the application.
One server or two?
It is not by accident that I used an example in the introduction (sadly, a real one) of IT systems that work well on developers' computers but not necessarily in the target environment. At the same time, many people (clients included) realize that an application first has to be tested on a staging, test or development server (the names vary a lot). So it is worth not only preparing a test version of the software, but also placing it on a system with a configuration similar to (or even identical with) the target server. That way most configuration mismatches are caught at a relatively early stage (test deployments happen much earlier than the final one), and you avoid problems on the production server. Unfortunately this is not always fully possible, but it is worth sticking to the rule.
Who will take care of running the server?
This is a very important point, and so often skipped in conversations. While it is fairly clear that deploying and updating the software on the server is the software house's responsibility (unless agreed otherwise), maintenance and responding to incidents are no longer obvious to both sides.
Developers work on software: designing it, building it and later actually maintaining it. But they do so in terms of its code and features. Software houses usually do not monitor running applications, and even less the server. That is the job of administrators, who know the field and can solve configuration problems in the target environment, and as a last resort (when there is a concern that a server problem comes from a bug in the application) they will inform the development team. Of course, larger "software houses" offer such an additional service, but this is usually possible because a larger company can also afford a department of administrators and DevOps engineers.
This may not be clear to the client, so it is worth talking about it at the start of the cooperation, with all the cards on the table, because otherwise it would lead to an unpleasant surprise for both sides later on. Sometimes someone more technical on the client's side, who looks after the IT infrastructure of their company anyway, can act as a "guardian". After proper training from the IT team, they can react in most situations and keep things in a safe state until they consult the software house. Note also that server administration requires a somewhat different kind of skills and knowledge than programming. It is the art of resolving configuration mismatches in the operating system, looking after the network, knowing the right parameters that improve server performance, and granting and maintaining the right permissions.
It is also worth stressing here that deploying code by a software house is not a one-time operation. Software needs to be maintained, and developers will certainly still have to react when bugs are found, or simply when the client reports changes that can help them make better use of the IT specialists' work. So you should work out a procedure not only for deploying the system initially, but also for updating it later, ideally in a way that keeps the technical downtime as short as possible. With a more complex architecture made up of many components, it is not a bad idea to prepare instructions, so that the deployment procedure is as fast as possible and causes fewer headaches, especially if the team grows later.
Summary
In this text I tried to present the main aspects of planning the place where the software you dream of will later run. Even if the environment is the simplest possible (one server or one hosting account), there are still many points to discuss, and they can have considerable weight for later technical or business decisions.
Best regards and thank you, Jakub Rojek.


