base-model-explorer / init_neo4j.sh
derek-thomas's picture
derek-thomas HF staff
Trying a new approach without neodash
f0f1d27
raw history blame
No virus
459 Bytes
#!/bin/bash
# Wait for Neo4j to start
echo "Waiting for Neo4j..."
while ! curl -s localhost:7474; do
sleep 1
done
echo "Neo4j started, running initialization scripts..."
# Run your initialization Cypher scripts
echo "Running init_neo4j..."
cat /app/scripts/init_neo4j.cypher | cypher-shell -u neo4j -p password
echo "Running load_data..."
cat /app/scripts/load_data.cypher | cypher-shell -u neo4j -p password
echo "Completed initialization scripts!"