Compare commits

...

4 Commits

Author SHA1 Message Date
Ryan Chen e0f2114736 Fix Obsidian sync by running sync-setup before sync
The container was failing with "No sync configuration found" because
ob sync was called without first running ob sync-setup. Now startup.sh
configures sync using environment variables before starting continuous
sync, and gracefully skips sync if setup fails.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-24 09:04:21 -04:00
ryan bac773ae4b Merge pull request 'Enable async_mode on PGVector for async method support' (#30) from refactor/chromadb-to-pgvector into main
Reviewed-on: #30
2026-04-24 08:53:34 -04:00
ryan 7742673cc0 Merge pull request 'Handle missing pgvector tables on first run' (#29) from refactor/chromadb-to-pgvector into main
Reviewed-on: #29
2026-04-24 08:49:38 -04:00
ryan 3b8fa3e7a0 Merge pull request 'Replace ChromaDB with pgvector' (#28) from refactor/chromadb-to-pgvector into main
Reviewed-on: #28
2026-04-24 08:44:39 -04:00
+18 -1
View File
@@ -8,8 +8,25 @@ mkdir -p /app/data/obsidian
# Start continuous Obsidian sync if enabled
if [ "${OBSIDIAN_CONTINUOUS_SYNC}" = "true" ]; then
VAULT_PATH="${OBSIDIAN_VAULT_PATH:-/app/data/obsidian}"
# Setup sync if not already configured
if ! ob sync-status --path "$VAULT_PATH" > /dev/null 2>&1; then
echo "Configuring Obsidian sync..."
ob sync-setup \
--vault "${OBSIDIAN_VAULT_ID}" \
--path "$VAULT_PATH" \
--password "${OBSIDIAN_E2E_PASSWORD}" \
--device-name "${OBSIDIAN_DEVICE_NAME:-simbarag}" || {
echo "Failed to configure Obsidian sync. Skipping."
OBSIDIAN_CONTINUOUS_SYNC=false
}
fi
if [ "${OBSIDIAN_CONTINUOUS_SYNC}" = "true" ]; then
echo "Starting Obsidian continuous sync in background..."
ob sync --continuous &
ob sync --path "$VAULT_PATH" --continuous &
fi
fi
echo "Starting application..."