Cloudways Environment Setup for Node.js
Budget: $10 – $250 USD
o Environment preparation
Review current Node.js application codebase and deployment needs (Node version, build steps, environment variables, file storage).
Confirm application compatibility with Cloudways runtime (e.g., PHP-app server settings that Cloudways uses, and Node process manager options).
o Cloudways setup and configuration
Create or configure Cloudways application/server instance (using credentials provided by client).
Configure proper Node.js version and process manager settings (start command, build commands).
Configure SSL (Let’s Encrypt) for the production domain and redirect HTTP -> HTTPS.
Configure custom domain and DNS records (client will provide domain registrar access or DNS details).
o Database setup
Configure MongoDB Atlas
Set up appropriate user accounts, network access (IP whitelisting or VPC peering), and database names.
Configure secure connection from Cloudways to Atlas using environment variables and connection strings; prefer using SRV connection string and TLS.
If needed, implement VPC Peering between Cloudways and Atlas (or recommend and configure appropriate secure network connectivity).
o Application configuration & deployment
Add environment variable management on Cloudways for NODE_ENV, DATABASE_URL/ MONGODB_URI, API keys, secrets, and any other config.
Ensure build and start scripts run correctly on Cloudways. Provide Procfile or start command if required.
Configure file storage (if app uses local uploads) — integrate with S3 storage or document limitations and propose alternatives.
Deploy the application to a staging environment first (if requested) then to production.
o Monitoring, logging & backups
Configure Cloudways application monitoring and/or external monitoring (New Relic, Sentry, LogDNA, or similar) for error tracking and performance.
Configure application logging to files or a centralized log service; ensure logs persist for a reasonable retention period.
Confirm MongoDB Atlas backup and restore configuration and frequency; document retention policy.
o Documentation & handover
Provide a step-by-step deployment and rollback guide.
Provide documentation for routine maintenance tasks (scale server, rotate credentials, restore DB from backup).
Github CI/CD
Review current Node.js application codebase and deployment needs (Node version, build steps, environment variables, file storage).
Confirm application compatibility with Cloudways runtime (e.g., PHP-app server settings that Cloudways uses, and Node process manager options).
o Cloudways setup and configuration
Create or configure Cloudways application/server instance (using credentials provided by client).
Configure proper Node.js version and process manager settings (start command, build commands).
Configure SSL (Let’s Encrypt) for the production domain and redirect HTTP -> HTTPS.
Configure custom domain and DNS records (client will provide domain registrar access or DNS details).
o Database setup
Configure MongoDB Atlas
Set up appropriate user accounts, network access (IP whitelisting or VPC peering), and database names.
Configure secure connection from Cloudways to Atlas using environment variables and connection strings; prefer using SRV connection string and TLS.
If needed, implement VPC Peering between Cloudways and Atlas (or recommend and configure appropriate secure network connectivity).
o Application configuration & deployment
Add environment variable management on Cloudways for NODE_ENV, DATABASE_URL/ MONGODB_URI, API keys, secrets, and any other config.
Ensure build and start scripts run correctly on Cloudways. Provide Procfile or start command if required.
Configure file storage (if app uses local uploads) — integrate with S3 storage or document limitations and propose alternatives.
Deploy the application to a staging environment first (if requested) then to production.
o Monitoring, logging & backups
Configure Cloudways application monitoring and/or external monitoring (New Relic, Sentry, LogDNA, or similar) for error tracking and performance.
Configure application logging to files or a centralized log service; ensure logs persist for a reasonable retention period.
Confirm MongoDB Atlas backup and restore configuration and frequency; document retention policy.
o Documentation & handover
Provide a step-by-step deployment and rollback guide.
Provide documentation for routine maintenance tasks (scale server, rotate credentials, restore DB from backup).
Github CI/CD