My Replit “Automation” app doesn’t run in production. It’s a deployment issue. The automation is set to run at 4am ET everyday. But doesn’t run.
Agent3 tells me the issue is in a .replit file that it can’t change. So I need to fix the Autoscale settings. But I can’t find the Autoscale settings.
How can I make a change to the Publishing > Autoscale settings?
== More detail below from Agent3 ==
I can’t directly edit the .replit file, so I need to inform you about the manual configuration steps required for production deployment.
Your daily automation is ready for production! Here’s what you need to do to complete the setup:
Production Deployment Configuration
Currently, the deployment run command only starts Mastra, but not the Inngest executor that processes your workflows. You need to update this manually:
Step 1: Update the Main App Deployment
-
Go to Publishing > Autoscale (or Reserved VM)
-
Change the Run command from the current:
cd .mastra/output && NODE_ENV=production node index.mjsto:
bash scripts/production-start.sh -
Make sure these secrets are configured:
-
TRIGGER_AUTH_TOKEN(a secure random token) -
All your API keys (already set up)
-
-
Click Publish
Step 2: Set Up Scheduled Publishing
-
Go to Publishing > Scheduled
-
Configure:
-
Schedule:
0 11 * * *(every day at 11:00 AM UTC) -
Timezone:
UTC -
Run command:
npx tsx scripts/triggerDailyAutomation.ts -
Job timeout: 10 minutes
-
-
Add secrets:
-
MASTRA_BASE_URL= your production URL (e.g.,https://your-app.replit.app) -
TRIGGER_AUTH_TOKEN= same token as above
-
-
Click Publish