Crossroad routine

Starting Up Sprinto

This page shows the working start and stop routine for the Crossroad web app, together with control commands and a MinIO fallback command.

WebGL slot ready for Rive or Spline asset.

Start

  • docker start crossroads-postgres crossroads-redis-1 minio
  • $env:S3_ENDPOINT="http://localhost:15000"
  • npm run dev
  • Run the commands in that order.

Kontroller

  • Invoke-WebRequest http://localhost:3000 -UseBasicParsing
  • Invoke-WebRequest http://localhost:15000/minio/health/live -UseBasicParsing
  • docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"

Viktigt

The environment only starts correctly when these details are used exactly as shown.

Viktigt att komma ihåg

  • MinIO runs on 15000 and 15001, not 9000 and 9001.
  • You must run $env:S3_ENDPOINT="http://localhost:15000" before npm run dev.
  • Run the environment variable in the same terminal as npm run dev.
  • Use the control commands after startup to verify the environment.

Stop

  • Ctrl + C
  • docker stop crossroads-postgres crossroads-redis-1 minio
  • First stop the dev server, then stop the containers.

Om minio saknas någon gång

Use this Docker command to recreate and start MinIO if it is missing.

MinIO fallback

  • docker run -d --name minio --network crossroads_app-network -p 15000:9000 -p 15001:9001 -e MINIO_ROOT_USER=minioadmin -e MINIO_ROOT_PASSWORD=minioadmin -v crossroads_minio_data:/data minio/minio server /data --console-address ":9001"