feat: prepare for Vercel deployment with PostgreSQL migration
This commit is contained in:
parent
38ab8a260c
commit
ffdc8c5b6c
8 changed files with 97 additions and 27 deletions
14
vercel-post-deploy.js
Normal file
14
vercel-post-deploy.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
const { execSync } = require('child_process');
|
||||
|
||||
async function runMigrations() {
|
||||
try {
|
||||
console.log('Running database migrations...');
|
||||
execSync('npm run db:migrate', { stdio: 'inherit' });
|
||||
console.log('Migrations completed successfully!');
|
||||
} catch (error) {
|
||||
console.error('Migration failed:', error);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
runMigrations();
|
||||
Loading…
Add table
Add a link
Reference in a new issue