Deployment
- What is deployment in software?
Deployment is the process of making a software application available for use, typically by installing, configuring, and starting it on a server or platform. It moves code from a development or build environment into a runtime environment. - How do I deploy a web app to a Linux server?
The general steps are: provision a server, install a runtime (e.g., Node.js, Python, PHP), copy your code, configure a web server like Nginx as a reverse proxy, and start your app with a process manager like systemd or PM2. - What is the difference between deployment and release?
Deployment is the technical process of installing software onto infrastructure. Release is the business decision to make that software available to users. You can deploy without releasing, and release without deploying (e.g., feature flags). - How do I roll back a bad deployment?
Redeploy the last known good version, or use your platform's rollback command (e.g., `kubectl rollout undo`, `docker service rollback`). Automate rollbacks in your pipeline for speed. - What is a blue-green deployment?
A release technique with two identical environments: blue (live) and green (idle). You deploy to green, test it, then switch traffic from blue to green. Rollback is just switching back. - How do I deploy code with Git?
Use Git to push code to a repository, then have a deployment tool (CI/CD, webhook, or manual pull) fetch and deploy it. Common methods: Git hooks, CI pipelines, or `git pull` on the server. - What are the basics of model deployment?
Model deployment means packaging a trained machine learning model and making it available to an application, usually through an API. It also covers scaling, versioning and monitoring the model after launch. - What are the basics of cloud deployment?
Cloud deployment means running your application on infrastructure from a provider such as AWS, Google Cloud or Azure instead of your own hardware. You pay for what you use and can scale up or down more easily. - What are the basics of AWS deployment?
AWS deployment means choosing a service such as EC2, Elastic Beanstalk, ECS, Lambda or App Runner, then setting up networking, permissions and a way to ship new code. The type of app you run usually points to the best option. - What are examples of deployment diagrams?
A deployment diagram shows the hardware or runtime nodes in a system and which software artifacts run on each one. Common examples include a three-tier web app, a load-balanced setup and a database server layout. - How do I manage environment variables for a deployed app?
Keep secrets and environment-specific settings out of your code, set them in your hosting platform or a server env file with tight permissions, and restart the app after changes. - How much does a basic cloud server usually cost per month?
A small virtual server often costs somewhere from a few dollars to around twenty dollars a month, depending on memory, CPU, storage, and bandwidth. Prices vary by provider and region, so compare the specs, not just the headline figure. - When is the best time to deploy to production?
Deploy when the tests pass, someone is available to watch the release, and traffic is at its lower point. Many teams avoid late Fridays and the hours right before a major event. - Is it necessary to use a staging server before production?
It is strongly recommended for anything users depend on, because a staging server catches configuration and integration problems before real customers see them. Smaller side projects can sometimes skip it if backups and rollback are solid.