Skip to content

Commit

Permalink
Merge pull request #524 from redwoodjs/dsp-fix-dev-server-prisma-erro…
Browse files Browse the repository at this point in the history
…r-when-no-API

Fix Prisma Client error when running dev server w/out DB
  • Loading branch information
thedavidprice committed May 11, 2020
2 parents 2341368 + 22ba0bd commit 5180478
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/cli/src/commands/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import concurrently from 'concurrently'

import { getPaths } from 'src/lib'
import c from 'src/lib/colors'
import { handler as generatePrismaClient } from 'src/commands/dbCommands/generate'

export const command = 'dev [app..]'
export const desc = 'Run development servers.'
export const desc = 'Run development servers for db, api, and web.'
export const builder = {
app: { choices: ['db', 'api', 'web'], default: ['db', 'api', 'web'] },
}
Expand All @@ -20,9 +19,6 @@ export const handler = async ({ app = ['db', 'api', 'web'] }) => {
const API_DIR = path.join(BASE_DIR, 'api')
const WEB_DIR = path.join(BASE_DIR, 'web')

// Generate the Prisma client if it doesn't exist.
await generatePrismaClient({ verbose: false, force: false })

const jobs = {
api: {
name: 'api',
Expand Down

0 comments on commit 5180478

Please sign in to comment.