How to use Back4app Agent
Container as a Service
12 min
back4app's containers as a service offers a robust platform for deploying web applications seamlessly this guide focuses on the web deployment feature, providing insights and sample prompts to help developers deploy, manage, and monitor their web apps on back4app containers creating a new web app from a github repository deploy your web applications directly from a github repository prompt samples create a web app named "simplewebapp" from my github repository "simple repo" deploy "intermediatewebapp" from the "intermediate repo" on github, using the "dev" branch set up "complexwebapp" from "complex repo" on github, specifying the "features" branch, root directory as "/web", and setting custom environment variables getting existing web apps review and manage all your web applications deployed on back4app prompt samples list all my deployed web apps retrieve details of the web app named "intermediatewebapp" get comprehensive details, settings, and configurations of all my deployed web apps updating web app settings modify configurations, environment variables, and other settings of your deployed web apps prompt samples change the branch of "simplewebapp" to "main" update "intermediatewebapp" to use the "production" branch and set a new environment variable modify "complexwebapp" settings, including branch, root directory, environment variables, and enable auto deployment starting a new deployment initiate a deployment process for your web apps to reflect the latest changes prompt samples start a new deployment for "simplewebapp" deploy the latest changes of "intermediatewebapp" and monitor the deployment status initiate deployment for "complexwebapp", ensuring all configurations are optimized and checking for any deployment issues retrieving deployment details and logs monitor and troubleshoot your deployments by accessing detailed logs and status reports prompt samples get the deployment status of "simplewebapp" retrieve the deployment logs for "intermediatewebapp" to check for any warnings fetch detailed deployment logs, container logs, and performance metrics for "complexwebapp" best practices for web deployment version control ensure your github repository is well organized, with separate branches for development and production environment variables use environment variables for sensitive data and configurations, keeping them out of your codebase continuous deployment leverage back4app's auto deployment feature to automate the deployment process whenever changes are pushed to the specified branch monitoring regularly check deployment logs and metrics to ensure optimal performance and troubleshoot any issues