22# /.devcontainer/setup.sh
33set -e # Exit on any error
44
5- echo " Setting up the Demiurge dev environment..."
5+ echo " Setting up the Morphological-Source-Code dev environment..."
66
7- # Load the correct .env file based on the current branch
7+ # UNUSED::Seperate .env for each branch
88BRANCH=$( git rev-parse --abbrev-ref HEAD)
99if [[ " $BRANCH " == " staging" ]]; then
10- cp /config/staging.env .env
11- elif [[ " $BRANCH " == " main" ]]; then
12- cp /config/production.env .env
10+ cp env.example .env
11+ elif [[ " $BRANCH " == " development" ]]; then
12+ cp env.example .env
13+ elif [[ " $BRANCH " == " production" ]]; then
14+ cp env.example .env
1315else
14- cp /config/dev. env .env
16+ cp env.example .env
1517fi
1618
1719# Install Python dependencies and set up the environment
@@ -21,13 +23,13 @@ uv install --extra dev
2123uv run -m jupyterlab --generate-config
2224
2325# Create a Jupyter kernel for this environment
24- uv run -m ipykernel install --user --name=cognosis
26+ uv run -m ipykernel install --user --name=morphological
2527
26- # Init JupyterLab
27- uv run --with jupyter jupyter lab --ip=0.0.0.0 --port=8888 --allow-root
28-
29- # Run nox to execute predefined tasks like tests and linting
30- uv run -m nox -s tests # Runs the tests session defined in the noxfile.py
28+ # Run tests first (they might fail fast)
29+ uv run -m nox -s tests
3130
3231# Optional: Add any additional setup steps here
33- echo " Demiurge development environment setup is complete."
32+
33+ echo " Starting JupyterLab..."
34+ echo " Setup complete. JupyterLab will start now."
35+ exec uv run --with jupyter jupyter lab --ip=0.0.0.0 --port=8888 --allow-root
0 commit comments