mirror of
https://github.com/qdrant/landing_page.git
synced 2026-09-25 22:18:30 +02:00
* Adds a run script to easily serve the page locally * Updates the Hugo version * Updates deprecated fields * Add version checks in the run and build scripts * Update JS dependencies to fix CVEs
10 lines
505 B
Bash
Executable File
10 lines
505 B
Bash
Executable File
#!/bin/bash
|
|
|
|
REQUIRED_HUGO_VERSION="0.160.1"
|
|
INSTALLED_HUGO_VERSION=$(hugo version | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | head -1 | tr -d 'v')
|
|
if [ "${INSTALLED_HUGO_VERSION}" != "${REQUIRED_HUGO_VERSION}" ]; then
|
|
echo "Warning: Hugo version ${REQUIRED_HUGO_VERSION} is required, but found ${INSTALLED_HUGO_VERSION}."
|
|
echo "It is recommended to install the correct Hugo version. See https://gohugo.io/installation/ for installation instructions."
|
|
fi
|
|
|
|
cd qdrant-landing && npm install && hugo serve |