| #!/bin/sh |
|
|
| set -e |
|
|
| echo "[$(date)] Starting Menav..." |
|
|
| |
| if [ "$MENAV_IMPORT_BOOKMARKS" = "true" ] && [ -d /app/bookmarks ]; then |
| echo "[$(date)] Importing bookmarks..." |
| npm run import-bookmarks || echo "Import failed, continuing" |
| fi |
|
|
| |
| if [ "$MENAV_ENABLE_SYNC" = "true" ]; then |
| echo "[$(date)] Syncing data..." |
| npm run sync-all || echo "Sync failed, continuing" |
| fi |
|
|
| |
| echo "[$(date)] Building project..." |
| npm run build |
|
|
| |
| echo "[$(date)] Starting nginx on port 7860..." |
| nginx -c /etc/nginx/nginx.conf |
|
|
| |
| tail -f /dev/null |