Skip to content

Commit

Permalink
Merge pull request #26 from zenml-io/2024.10.30
Browse files Browse the repository at this point in the history
Using `zenml login` for templates
  • Loading branch information
bcdurak authored Nov 7, 2024
2 parents cd4601e + e37d83a commit dadf9be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ After configuring your project, you can run the following commands to set up you
cd <your_project_directory>
make setup
make install-local-stack
zenml up
zenml login --local
python run.py
```

Expand Down
2 changes: 1 addition & 1 deletion copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ _tasks:
echo " # optional, provision default local stack"
echo " make install-local-stack"
echo " # optional, start ZenML Dashboard"
echo " zenml up"
echo " zenml login --local"
echo " python run.py"
echo
echo "Next, you should take a look at the '{{ _copier_conf.dst_path }}/README.md' file in the generated project."
Expand Down
4 changes: 2 additions & 2 deletions template/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ stack_name ?= nlp_template_stack

{%- if zenml_server_url != '' %}
remote-login:
zenml connect --url "{{zenml_server_url}}"
zenml login "{{zenml_server_url}}"

setup: remote-login
{%- else %}
Expand All @@ -23,4 +23,4 @@ install-local-stack:
zenml stack register -a default -o default -r mlflow_local_$${stack_name} \
-e mlflow_local_$${stack_name} $${stack_name} && \
zenml stack set $${stack_name} && \
zenml up
zenml login --local
5 changes: 2 additions & 3 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ source .venv/bin/activate
make setup
# Optionally, provision default local stack
make install-local-stack
# Start the ZenML UI locally (recommended, but optional);
# the default username is "admin" with an empty password
zenml up
# Start the ZenML UI locally (recommended, but optional)
zenml login --local
# Run the pipeline included in the project
python run.py
```
Expand Down

0 comments on commit dadf9be

Please sign in to comment.