Skip to content

Commit

Permalink
'viur cloud setup gcloud now requires deploy diretory in current work…
Browse files Browse the repository at this point in the history
…ing directory' (#177)
  • Loading branch information
Grashalmbeisser authored Nov 8, 2024
1 parent 06f1dc6 commit 46a930b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/viur_cli/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,12 @@ def setup(action, profile):
Set up the specified action for the given profile.
"""
if action == "gcloud":
gcloud_setup()
if os.path.exists('deploy'):
gcloud_setup()
else:
echo_error("No 'deploy' directory found in your current working directory."
"\n Please make sure you are in the correct directory."
"\n If you want to create a new ViUR Project use 'viur create {name}'")

if action == "gcroles":
gcloud_setup_roles(profile)
Expand Down

0 comments on commit 46a930b

Please sign in to comment.