Touching up update instructions in README and UI

This commit is contained in:
Cole Medin
2025-09-20 12:40:06 -05:00
parent 1dff0cb953
commit 48e7d59db4
2 changed files with 17 additions and 4 deletions

View File

@@ -206,14 +206,18 @@ To upgrade Archon to the latest version:
git pull
```
2. **Check for migrations**: Look in the `migration/` folder for any SQL files newer than your last update. Check the file created dates to determine if you need to run them. You can run these in the SQL editor just like you did when you first set up Archon. We are also working on a way to make handling these migrations automatic!
3. **Rebuild and restart**:
2. **Rebuild and restart containers**:
```bash
docker compose up -d --build
```
This rebuilds containers with the latest code and restarts all services.
This is the same command used for initial setup - it rebuilds containers with the latest code and restarts services.
3. **Check for database migrations**:
- Open the Archon settings in your browser: [http://localhost:3737/settings](http://localhost:3737/settings)
- Navigate to the **Database Migrations** section
- If there are pending migrations, the UI will display them with clear instructions
- Click on each migration to view and copy the SQL
- Run the SQL scripts in your Supabase SQL editor in the order shown
## What's Included

View File

@@ -45,6 +45,15 @@ export function UpdateBanner() {
<ExternalLink className="w-4 h-4" />
</a>
)}
<a
href="https://github.com/coleam00/Archon#upgrading"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-2 px-4 py-2 bg-purple-500/20 hover:bg-purple-500/30 border border-purple-500/50 rounded-lg text-purple-400 transition-all duration-200"
>
<span className="text-sm font-medium">View Upgrade Instructions</span>
<ExternalLink className="w-4 h-4" />
</a>
<button type="button"
onClick={() => setIsDismissed(true)}
className="p-2 hover:bg-gray-700/50 rounded-lg transition-colors"