Skip to main content
Schoolyi

Browse docs

Deploy & admin

Environment variables

Required and optional environment configuration for app, auth, mail, payments, and cron.

Deploy & admin guide for day and boarding schools.

Last updated July 24, 2026

Schoolyi reads configuration from tracked .env templates and server-specific .env.prod. Never commit secrets to public repositories - use server-side merge during deploy.

VariableRequiredPurpose
DATABASE_URLYesMySQL connection string
NEXTAUTH_URLYesCanonical app URL for auth callbacks
NEXTAUTH_SECRETYesSession encryption - rotate with care
NEXT_PUBLIC_SITE_URL / APP_URLYesPublic links in emails, PDFs, and deep links
SMTP_*For emailFee receipts, admissions, magic link, boarding alerts
FEES_ONLINE_PAYMENT_MODERecommendedsimulate (default) or razorpay - Razorpay keys only if razorpay
RAZORPAY_*OptionalOnly when FEES_ONLINE_PAYMENT_MODE=razorpay
FEES_CRON_SECRET / SESSION_COOKIEFor cronscripts/run-school-cron.sh auth
NEXT_PUBLIC_DEPLOY_ENVRecommendedShows non-prod badge in UI
DEPLOY_*For SSH deployHost, user, keys in .env

Common questions

Quick answers in plain language.

What is school ERP implementation?+

Required and optional environment configuration for app, auth, mail, payments, and cron. This is a core topic in Deploy & admin on Schoolyi.

How do I set up environment variables in school management software?+

Follow the steps in this guide during environments, migrations, and operations runbooks. Start with getting-started docs if you are new to Schoolyi, then apply the workflows here for your school year.

How does Schoolyi handle environment variables?+

Required and optional environment configuration for app, auth, mail, payments, and cron.

Is there a school ERP implementation guide for school administrators?+

Yes. This article is part of the public Deploy & admin documentation at /docs - written for administrators, operators, and IT teams.

Who manages environment variables at a typical K-12 school?+

Usually deploy & admin and front-office staff responsible for school ERP implementation. Teachers and finance may have scoped access depending on your role configuration.

Does Schoolyi support school software deployment?+

Yes. Schoolyi is a cloud school management system (SMS) with connected modules on one student roster and academic calendar. See related guides below or contact us for a demo focused on school ERP implementation.

Related searches

School leaders and IT teams often search for: how to environment variables in school management software, best school ERP implementation for K-12 schools, Schoolyi environment variables guide, school software deployment, MySQL school database backup, and school SaaS hosting.