Prisma1: `prisma deploy` doesn't run `prisma local start` from interactive cluster selection

Created on 14 Feb 2018  Â·  4Comments  Â·  Source: prisma/prisma1

Bug Report

Current behavior

When I'm running prisma deploy and don't have a cluster set in my prisma.yml, the CLI prompts me with an interactive selection for the cluster. When I'm choosing the local cluster but didn't previously ran prisma local start, the CLI throws the following error:

? Please choose the cluster you want to deploy "my-app@dev" to 
Added cluster: local to prisma.yml
Creating stage dev for service my-app !
 â–¸    Could not connect to cluster local. Please use prisma local start to start your local Prisma cluster.

Get in touch if you need help: https://www.graph.cool/forum
To get more detailed output, run $ export DEBUG="*"

You can now start local server and open a GraphQL Playground by running: `yarn dev`

Instead, it should execute

Reproduction

prisma local stop # stop local cluster if necessary
prisma init myapp # choose any boilerplate

Then in the cluster, prompt choose local.

Expected behavior?

It should run prisma local start instead of failing.

bu2-confirmed arecli

All 4 comments

Note that this currently has a really bad effect on the Quickstart experience as both backend tutorials are currently failing because of that!

I'll adjust the tutorials in the docs for now, please make sure to ping me when the issue is fixed so I can update them again!

Hi... I'm working through the tutorial found here https://www.howtographql.com/react-apollo/1-getting-started/ I hit a wall when I get to prisma deploy. The prisma.yml file installed doesn't contain a reference to cluster and the "prisma deploy" command doesn't prompt for selecting a cluster. I have tried to add a reference to cluster in the prisma.yml file, but with no success.

Probably the same as @supertopoz . Ofc I have run yarn install before.

yarn prisma deploy
yarn run v1.6.0
$ prisma deploy
'prisma' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Hey @supertopoz and @ZidaneT, the problem you're running into is due to the latest 1.7 release of Prisma. I just updated the tutorial project to continue using the 1.6.3 release so that the tutorial flow is fixed. I will do a proper update of the tutorials to accommodate for all the 1.7 changes soon. Let me know if you have any further questions! 🙂
Also feel free to ping me in our Slack: @nikolasburk 🙌

Was this page helpful?
0 / 5 - 0 ratings

Related issues

schickling picture schickling  Â·  3Comments

hoodsy picture hoodsy  Â·  3Comments

schickling picture schickling  Â·  3Comments

akoenig picture akoenig  Â·  3Comments

AlessandroAnnini picture AlessandroAnnini  Â·  3Comments