fix(ci): enable branch smoke tests and shift migration trigger to health check
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 16s
Build & Deploy / 🧪 QA (push) Successful in 3m22s
Build & Deploy / 🏗️ Build (push) Successful in 5m2s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 4m14s
Build & Deploy / 🔔 Notify (push) Successful in 2s
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 16s
Build & Deploy / 🧪 QA (push) Successful in 3m22s
Build & Deploy / 🏗️ Build (push) Successful in 5m2s
Build & Deploy / 🚀 Deploy (push) Successful in 28s
Build & Deploy / 🧪 Post-Deploy Verification (push) Failing after 4m14s
Build & Deploy / 🔔 Notify (push) Successful in 2s
This commit is contained in:
@@ -28,14 +28,9 @@ const dirname = path.dirname(filename);
|
||||
|
||||
export default buildConfig({
|
||||
onInit: async (payload) => {
|
||||
payload.logger.info('Payload onInit hook started');
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
payload.logger.info('Running automated migrations...');
|
||||
await payload.db.migrate();
|
||||
payload.logger.info('Seeding database...');
|
||||
await seedDatabase(payload);
|
||||
}
|
||||
payload.logger.info('Payload onInit hook finished');
|
||||
},
|
||||
admin: {
|
||||
user: Users.slug,
|
||||
|
||||
Reference in New Issue
Block a user