Improve Laravel deploy support and add .env import to deploy wizard.

Set Laravel DB env vars in Helm and Kubernetes, fix default port to 80 with a storage-aware entrypoint, and let users upload a .env file during deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
keyhan
2026-05-14 18:48:03 +03:30
parent b24d1505b6
commit cca6cdc1a5
5 changed files with 172 additions and 3 deletions
@@ -431,6 +431,16 @@ export class KubernetesService implements OnModuleInit {
);
}
if (
(ctx.runtime === AppRuntime.LARAVEL || ctx.runtime === AppRuntime.PHP) &&
ctx.databaseType !== DatabaseType.NONE
) {
extraEnv.push(
{ name: 'DB_DATABASE', value: ctx.appName.replace(/-/g, '_') },
{ name: 'DB_USERNAME', valueFrom: { secretKeyRef: { name: `${ctx.appName}-db-secret`, key: 'username' } } },
);
}
// Redis connection env vars
if (ctx.enableRedis) {
const redisName = `${ctx.appName}-redis`;