This commit is contained in:
Bohdan Krokhmal 2025-04-29 19:23:33 +02:00
parent 0fcfb5a6d1
commit c35fa2d7b4

View File

@ -56,43 +56,39 @@ The application is deployed on **Azure** using Docker containers and Nginx as a
### **Scripts**
Azure Management Scripts
* start-app-service.sh
Starts the Azure App Service instance
- start-app-service.sh Starts the Azure App Service instance
# Authenticates with Azure and sends start request
# Requires Azure CLI login and proper permissions
* stop-app-service.sh
Stops the Azure App Service instance
- stop-app-service.sh Stops the Azure App Service instance
# Authenticates with Azure and sends stop request
# Preserves all application data
* restart-app-service.sh
Restarts the Azure App Service instance
- restart-app-service.sh Restarts the Azure App Service instance
# Performs full restart of the Azure service
# Useful for applying configuration changes
Application Lifecycle Scripts
* prepare-app.sh
Full application deployment sequence:
1) Starts Docker containers (docker-compose up -d)
- prepare-app.sh Full application deployment sequence:
2) Triggers Azure App Service startup (start-app-service.sh)
1. Starts Docker containers (docker-compose up -d)
3) Outputs deployment URL
2. Triggers Azure App Service startup (start-app-service.sh)
3. Outputs deployment URL
> The application has started at https://sk1bk-edgvcnfsfxfsegg2.westeurope-01.azurewebsites.net/
* remove-app.sh
Complete application teardown sequence:
- remove-app.sh Complete application teardown sequence:
1) Stops Azure App Service (stop-app-service.sh)
1. Stops Azure App Service (stop-app-service.sh)
2) Removes all Docker containers and volumes (docker-compose down -v)
2. Removes all Docker containers and volumes (docker-compose down -v)
Implementation Notes
1) All Azure management scripts:
1. All Azure management scripts:
- Require authenticated Azure CLI session
@ -102,7 +98,7 @@ Implementation Notes
- Handle empty request bodies with Content-Length: 0
2) Composite scripts (prepare-app.sh, remove-app.sh):
2. Composite scripts (prepare-app.sh, remove-app.sh):
- Combine container and cloud resource management
@ -110,7 +106,7 @@ Implementation Notes
- Provide user feedback via console output
3) Security:
3. Security:
- Access tokens are obtained fresh for each execution