Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deployment friendly code

Tags:

deployment

Is writing deployment friendly code considered a good virtue on the part of a programmer?

If yes, then what are the general considerations to be kept in mind when coding so that deployment of the same code later does not become a nightmare?

like image 698
Anand Shah Avatar asked May 24 '26 18:05

Anand Shah


2 Answers

The biggest improvement to deployment is to minimize manual intervention and manual steps. If you have to type in configuration values or manually navigate through configuration screens there will be errors in your deployment.

like image 128
Alex B Avatar answered May 27 '26 08:05

Alex B


If your code needs to "call home", make sure that the user understands why, and can turn the functionality off if necessary. This might only be a big deal if you are writing off-the-shelf software to be deployed on corporate networks.

It's also nice to not have your program be dependent on too many environmental things to run properly. To combat this, I like to define a directory structure with my own bin, etc and other folders so that everything can be self-contained.

like image 44
Jeremy Huiskamp Avatar answered May 27 '26 07:05

Jeremy Huiskamp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!