Remote Publishing with Alfred Remote for Quartz Sites
Remote Publishing with Alfred Remote for Quartz Sites
Section titled “Remote Publishing with Alfred Remote for Quartz Sites”Trigger publishing from anywhere using Alfred Remote on your iPhone or iPad. Your always-on Mac mini handles the work while you publish on-the-go.
Table of Contents
Section titled “Table of Contents”- What You’ll Build
- Prerequisites
- How It Works
- Setup on Mac Mini
- Setup on iPhone/iPad
- Configure File Sync
- Testing Remote Publishing
- Troubleshooting
What You’ll Build
Section titled “What You’ll Build”Remote publishing system that lets you:
- Trigger publishing from iPhone/iPad
- Publish from anywhere with Obsidian Sync or iCloud
- Use your always-on Mac mini as a publishing server
- No need for Obsidian app to run on Mac mini
- Get notifications when publishing completes
The remote workflow:
Edit on iPad → Obsidian Sync → Tap "publish" on iPhone → Mac mini builds → Site liveWhy Quartz makes this easier:
- No wikilink conversion step
- Quartz reads directly from synced vault
- Fewer moving parts = fewer failures
Time to complete: 15-20 minutes
Prerequisites
Section titled “Prerequisites”Before setting up remote publishing, you must have:
Required
Section titled “Required”- Alfred workflows already set up and working
- Must have tested
previewandpublishsuccessfully on your Mac
- Must have tested
- Alfred Powerpack on your Mac
- Alfred Remote app on iPhone/iPad (free, requires Powerpack on Mac)
- Download: App Store - Alfred Remote
- Always-on Mac (Mac mini recommended)
- Must stay powered on and connected to internet
- Alfred must launch at login
- File sync service:
- Obsidian Sync (paid), OR
- iCloud Drive with Obsidian vault, OR
- Dropbox/other cloud sync
Verify Prerequisites
Section titled “Verify Prerequisites”Test that local workflows work on your Mac:
# Test publish manuallycd ~/Developer/mementropy-quartz && ./scripts/publish.shIf this fails, fix your core workflows first.
How It Works
Section titled “How It Works”Remote Publishing Architecture
Section titled “Remote Publishing Architecture”┌──────────────────────────────────────────────────────────┐│ Your iPad/Laptop ││ ┌─────────────────┐ ││ │ Edit in │ ││ │ Obsidian │ ││ └────────┬────────┘ │└───────────┼──────────────────────────────────────────────┘ │ │ Obsidian Sync / iCloud (automatic) ▼┌──────────────────────────────────────────────────────────┐│ Mac Mini (always on) ││ ┌─────────────────┐ ┌─────────────────┐ ││ │ Synced Vault │────▶│ Quartz Project │ ││ │ (markdown) │ │ (content/) │ ││ └─────────────────┘ └────────┬────────┘ ││ │ ││ │ Alfred triggers ││ ▼ ││ ┌─────────────────┐ ││ │ npx quartz │ ││ │ build & push │ ││ └────────┬────────┘ │└───────────────────────────────────┼──────────────────────┘ │┌──────────────────────────────────────────────────────────┐│ Your iPhone ││ ┌─────────────────┐ ││ │ Alfred Remote │──── "Tap publish" ─────────────────▶││ │ (triggers Mac) │ ││ └─────────────────┘ │└──────────────────────────────────────────────────────────┘Critical Point: Obsidian App NOT Required on Mac Mini
Section titled “Critical Point: Obsidian App NOT Required on Mac Mini”The Mac mini only needs:
- macOS - Running
- File sync - iCloud daemon or Obsidian Sync service (background)
- Alfred - To receive Remote triggers
- Node.js - For Quartz builds
- Git - For pushing to GitHub
The Obsidian application does not need to run. Quartz reads markdown files directly from disk.
Setup on Mac Mini
Section titled “Setup on Mac Mini”Step 1: Configure Energy Settings
Section titled “Step 1: Configure Energy Settings”Ensure Mac mini never sleeps:
- System Settings → Energy
- Enable:
- Prevent sleeping when display is off: ON
- Start up automatically after a power failure: ON
Step 2: Configure Login Items
Section titled “Step 2: Configure Login Items”Make Alfred launch automatically:
- System Settings → General → Login Items
- Click ”+” under “Open at Login”
- Select Alfred from Applications
Test: Restart Mac mini and verify Alfred appears in menu bar.
Step 3: Enable Alfred Remote
Section titled “Step 3: Enable Alfred Remote”- Open Alfred Preferences on Mac mini
- Click Remote tab
- Check “Enable Remote on this Mac”
- Choose connection method:
Option A - Local Network (same WiFi only):
- Click “Add iOS Device”
- Note the IP address shown
Option B - iCloud (Recommended - works anywhere):
- Click “Enable iCloud Sync”
- Sign in with your Apple ID
Step 4: Create Remote Page (Optional)
Section titled “Step 4: Create Remote Page (Optional)”Organize your workflows for easy access:
- In Alfred Preferences → Remote tab
- Click ”+” to create new page
- Name: “Quartz”
- Drag these workflows to the page:
previewpublishstoppreview
Setup on iPhone/iPad
Section titled “Setup on iPhone/iPad”Step 1: Download Alfred Remote
Section titled “Step 1: Download Alfred Remote”- Open App Store
- Search: “Alfred Remote”
- Download (free, requires Powerpack on Mac)
Step 2: Connect to Mac Mini
Section titled “Step 2: Connect to Mac Mini”Using iCloud (Recommended)
Section titled “Using iCloud (Recommended)”- Open Alfred Remote
- Tap Settings (gear icon)
- Tap “Sign in with iCloud”
- Use same Apple ID as your Mac mini
- Wait 30 seconds - Mac should appear
- Tap Mac name to connect
Using Local Network
Section titled “Using Local Network”- Open Alfred Remote
- Tap ”+” → “Add Mac”
- Your Mac mini should appear
- Tap to connect
- Enter PIN shown in Alfred Preferences
Step 3: Verify Connection
Section titled “Step 3: Verify Connection”- Green dot = Connected
- Your workflows should be visible
- Test: Tap any workflow
Configure File Sync
Section titled “Configure File Sync”For remote publishing to work, your edits must sync to the Mac mini.
Option 1: Obsidian Sync (Recommended)
Section titled “Option 1: Obsidian Sync (Recommended)”- On Mac mini, open Obsidian once
- Settings → Sync → Verify vault connected
- Close Obsidian (don’t need it running)
- Sync runs in background automatically
Option 2: iCloud Drive
Section titled “Option 2: iCloud Drive”-
Ensure vault is in iCloud location:
~/Library/Mobile Documents/iCloud~md~obsidian/Documents/YourVault/ -
Update Quartz
content/to symlink or copy from there -
Verify iCloud is active:
Terminal window brctl status# Should show: iCloud is active
Option 3: Direct Vault Reference
Section titled “Option 3: Direct Vault Reference”If your Quartz project’s content/ folder is a symlink to your Obsidian vault:
# Check if content is a symlinkls -la ~/Developer/mementropy-quartz/content
# Should show something like:# content -> /Users/ryan/Obsidian/Ingenium/mementropy-siteThe sync happens at the Obsidian vault level, and Quartz picks it up automatically.
Test File Sync
Section titled “Test File Sync”- On iPad: Edit a file in Obsidian
- Wait 30-60 seconds
- On Mac mini:
Terminal window ls -lt ~/Obsidian/Ingenium/mementropy-site/ | head -5 - Verify: Modified file shows recent timestamp
Testing Remote Publishing
Section titled “Testing Remote Publishing”Test 1: Connection Test
Section titled “Test 1: Connection Test”- On iPhone: Open Alfred Remote
- Find your Quartz page (or default)
- Tap
preview
Expected on Mac mini:
- Quartz server starts
- Browser opens to localhost:8080
- Notification appears
Test 2: Stop Preview
Section titled “Test 2: Stop Preview”- On iPhone: Tap
stoppreview
Expected:
- Server stops
- Notification: “Preview server stopped”
Test 3: Publish (No Changes)
Section titled “Test 3: Publish (No Changes)”- On iPhone: Tap
publish
Expected:
- Notification: “Already up to date” (if no changes)
- Or “Published successfully” (if there were changes)
Test 4: Full Remote Flow
Section titled “Test 4: Full Remote Flow”- On iPad: Edit a file in Obsidian
- Wait 60 seconds for sync
- On iPhone: Tap
publish - Verify: Check GitHub Actions → should show new workflow run
Test 5: Away From Home (iCloud)
Section titled “Test 5: Away From Home (iCloud)”- On iPhone: Turn off WiFi (use cellular)
- Open Alfred Remote
- Verify Mac still shows “Connected”
- Tap
publish
If using iCloud: Works from anywhere with internet!
Usage Scenarios
Section titled “Usage Scenarios”Scenario 1: Quick Fix While Out
Section titled “Scenario 1: Quick Fix While Out”Situation: Spotted typo while reading site on phone.
Steps:
- Open Obsidian on phone
- Fix the typo
- Wait 30 seconds for sync
- Open Alfred Remote → Tap
publish - Done in under 2 minutes
Scenario 2: Write on iPad, Publish from Phone
Section titled “Scenario 2: Write on iPad, Publish from Phone”Situation: Wrote new post on iPad at coffee shop.
Steps:
- Finish writing in Obsidian on iPad
- Ensure
draft: falsein frontmatter - Wait for Obsidian Sync (check status icon)
- On iPhone: Alfred Remote →
publish - Site updates in ~3 minutes
Scenario 3: Preview on Mobile Device
Section titled “Scenario 3: Preview on Mobile Device”Situation: Want to see how site looks on phone.
Steps:
- Tap
previewin Alfred Remote - On iPhone Safari:
http://[MAC_IP]:8080 - Browse site on actual mobile device
- Tap
stoppreviewwhen done
Troubleshooting
Section titled “Troubleshooting”Problem: Mac Not Appearing in Alfred Remote
Section titled “Problem: Mac Not Appearing in Alfred Remote”Solutions:
- Same Apple ID: Both devices must use same Apple ID for iCloud
- Wait for sync: iCloud can take 2-3 minutes
- Restart Alfred on Mac: Quit completely, relaunch
- Check firewall: System Settings → Network → Firewall → Allow Alfred
Problem: Workflow Doesn’t Trigger
Section titled “Problem: Workflow Doesn’t Trigger”Solutions:
- Test locally first:
Terminal window cd ~/Developer/mementropy-quartz && ./scripts/publish.sh - Check Alfred is running: Look for icon in Mac menu bar
- Verify Mac is awake: Energy settings → Prevent sleep
Problem: Files Not Syncing
Section titled “Problem: Files Not Syncing”Solutions:
- Check timestamps on Mac mini:
Terminal window ls -lt ~/Obsidian/Ingenium/mementropy-site/ | head -5 - For Obsidian Sync: Check sync status in Obsidian Settings
- For iCloud: Run
killall birdto restart sync daemon - Create test file: Make new file on iPad, verify it appears on Mac
Problem: Build Fails After Sync
Section titled “Problem: Build Fails After Sync”Solutions:
- Check log:
Terminal window cat /tmp/quartz-publish.log - Run manual build:
Terminal window cd ~/Developer/mementropy-quartz && npx quartz build - Check for syntax errors in recent edits
Quick Reference
Section titled “Quick Reference”Connection Checklist
Section titled “Connection Checklist”- Mac mini: Alfred running
- Mac mini: Energy settings prevent sleep
- Mac mini: Alfred Remote enabled
- iPhone: Alfred Remote app installed
- iPhone: Connected (green dot)
- File sync: Working (test with timestamp check)
Log Files
Section titled “Log Files”| File | Purpose |
|---|---|
/tmp/quartz-publish.log | Publish output |
/tmp/quartz-preview.log | Preview server output |
Commands for Debugging
Section titled “Commands for Debugging”# Check if Quartz server is runninglsof -i :8080
# Check recent file modificationsls -lt ~/Obsidian/Ingenium/mementropy-site/ | head -10
# View publish logcat /tmp/quartz-publish.log
# Manual publish testcd ~/Developer/mementropy-quartz && ./scripts/publish.shRelated
Section titled “Related”- Alfred Workflows for Quartz - Core workflow setup
- Quartz Troubleshooting - Advanced debugging
Last updated: 2025-01-13