Files
speckle-server/.devcontainer/postCreateCommand.sh
T
Kristaps Fabians Geikins e98029ef63 fix: disable pino-pretty in inspector to avoid freezes (#4718)
* fix: disable pino-pretty in inspector to avoid freezes

* CR comments
2025-05-13 11:14:50 +03:00

18 lines
758 B
Bash
Executable File

#!/usr/bin/env bash
set -eox pipefail
echo "Running postCreateCommand.sh"
# determine where the script is located, navigate into that directory, then find the root of the git repo in which it is located
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "${SCRIPT_DIR}"
GIT_ROOT="$(git rev-parse --show-toplevel)"
echo "Setting up environment variables by copying .env files"
cp -n "${GIT_ROOT}/packages/server/.env.example" "${GIT_ROOT}/packages/server/.env" || true
cp -n "${GIT_ROOT}/packages/frontend-2/.env.example" "${GIT_ROOT}/packages/frontend-2/.env" || true
echo "Installing nodejs dependencies and building shared packages"
PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
yarn build:public