Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/docker-entrypoint.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ if (process.env.DATABASE_URL) {
<%= tab(n) %>await exec('<%= npx %> prisma migrate deploy')
<% } -%>
<% if (prismaSeed && sqlite3 && (prismaFile || prismaEnv)) { -%>
<%= tab(n) %>if (newDb) await exec('npx prisma db seed')
<%= tab(n) %>if (newDb) await exec(<%- prismaSeed.match(/^[-.\/ \w]+$/) ? "'" + prismaSeed + "'" : JSON.stringify(prismaSeed) %>)
<% } -%>
<% } -%>
<% if (nextjsGeneration) { -%>
Expand Down
2 changes: 1 addition & 1 deletion test/base/windows/docker-entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const env = { ...process.env }
const target = url.protocol === 'file:' && url.pathname
const newDb = target && !fs.existsSync(target)
await exec('npx prisma migrate deploy')
if (newDb) await exec('npx prisma db seed')
if (newDb) await exec('ts-node --require tsconfig-paths/register prisma/seed.ts')
}

// launch application
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/nuxt-prisma/docker-entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const env = { ...process.env }

// prepare database
await exec('npx prisma migrate deploy')
if (newDb) await exec('npx prisma db seed')
if (newDb) await exec('node prisma/seed.js')
}

// launch application
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/remix-indie/docker-entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const env = { ...process.env }
const target = url.protocol === 'file:' && url.pathname
const newDb = target && !fs.existsSync(target)
await exec('npx prisma migrate deploy')
if (newDb) await exec('npx prisma db seed')
if (newDb) await exec('ts-node --require tsconfig-paths/register prisma/seed.ts')
}

// launch application
Expand Down
2 changes: 1 addition & 1 deletion test/frameworks/svelte-prisma/docker-entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if (process.argv.slice(-2).join(' ') === 'node ./build/index.js') {

// prepare database
await exec('npx prisma migrate deploy')
if (newDb) await exec('npx prisma db seed')
if (newDb) await exec('tsx prisma/seed.ts')
}

// launch application
Expand Down
Loading