Skip to content

Commit

Permalink
Merge pull request #607 from vespa-engine/jobergum/paths
Browse files Browse the repository at this point in the history
one more time
  • Loading branch information
kkraune authored Oct 31, 2023
2 parents d264506 + 66dbcea commit 5ca79aa
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions docs/sphinx/source/getting-started-pyvespa-cloud.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
"res = requests.get(url=\"https://api.github.com/repos/vespa-engine/vespa/releases/latest\").json()\n",
"os.environ[\"VERSION\"] = res[\"tag_name\"].replace(\"v\", \"\")\n",
"!curl -fsSL https://github.com/vespa-engine/vespa/releases/download/v${VERSION}/vespa-cli_${VERSION}_linux_amd64.tar.gz | tar -zxf -\n",
"!ln -sf /content/vespa-cli_${VERSION}_linux_amd64/bin/vespa /usr/local/bin/vespa\n",
"!ls /usr/local/bin/vespa"
"!ln -sf /content/vespa-cli_${VERSION}_linux_amd64/bin/vespa /bin/vespa\n",
"!which vespa"
]
},
{
Expand All @@ -123,19 +123,11 @@
"outputs": [],
"source": [
"import os\n",
"import sys\n",
"\n",
"# Debug hack to see if the path is correct\n",
"print(\"PATH \" + str(sys.path))\n",
"sys.path.insert(0,'/usr/local/bin/vespa')\n",
"print(\"PATH after correction \" + str(sys.path))\n",
"\n",
"\n",
"os.environ[\"TENANT_NAME\"] = \"vespa-team\" #Replace with your tenant name\n",
"application = \"hybridsearch\"\n",
"vespa_cli_command = f'vespa config set application {os.environ[\"TENANT_NAME\"]}.{application}'\n",
"\n",
"\n",
"!vespa config set target cloud\n",
"!{vespa_cli_command}\n",
"!vespa auth cert -N "
Expand Down

0 comments on commit 5ca79aa

Please sign in to comment.