Tools

What is Cloud Staging?

Cloud Staging runs your actor in Apify's actual production environment before you make it public on the Store, catching issues that local testing cannot detect. Think of it as a staging server specifically designed for Apify actors, integrated directly into your deployment pipeline. The core problem Cloud Staging solves is the gap between your local development environment and Apify's production infrastructure. When you develop and test locally using the Apify CLI, your actor runs on your machine with your Node.js version, your installed packages, your network configuration, and your file system. When the same actor runs on Apify's cloud platform, it runs inside a Docker container with potentially different dependency versions, different network routing, different proxy configurations, and different memory and CPU constraints. Cloud Staging bridges this gap by running your actor in the real environment before users see it. Here is what Cloud Staging validates. Docker build success — your Dockerfile actually builds without errors on Apify's infrastructure. Dependency resolution — all your npm or pip packages install correctly in the container environment. Schema compliance — your actor's actual output matches your declared dataset_schema.json when running in production. Success rate — your actor completes without crashing on Apify's infrastructure. Output quality — the results your actor produces in the cloud match the quality and completeness you see locally. Network behavior — your actor can reach its target websites from Apify's IP ranges and through its proxy infrastructure. The staging process is straightforward. You push your code to Apify, then trigger a Cloud Staging run through ApifyForge. The tool runs your actor with your test inputs in the production environment and reports back on every validation check. The whole process typically takes a few minutes and costs one or two PPE events — usually under $0.01 per staging run. Cloud Staging is most valuable when combined with the Schema Validator and Test Runner as a three-layer testing approach: validate schema locally (free), run test cases locally (free), then verify everything works in production with Cloud Staging (minimal cost). For more on this testing workflow, see the related questions about the Schema Validator, Test Runner, and Regression Tests. Visit apifyforge.com/tools/cloud-staging for setup instructions.

Related questions