Skip to content

Instantly share code, notes, and snippets.

View HarleySalas's full-sized avatar
🎯
Focusing

Harley Salas HarleySalas

🎯
Focusing
View GitHub Profile
@r1tsuu
r1tsuu / bump-payload.ts
Last active May 4, 2024 21:03
script to bump all Payload 3.0 related packages versions to latest.
/**
* Place this to ./src/scripts/bump-payload.ts
* Then in your package.json add script:
* "bump-payload": "tsx ./src/scripts/bump-payload.ts ./package.json && pnpm i"
* Run `pnpm bump-payload`
*/
import { execSync } from 'child_process';
import fs from 'fs';
import path from 'path';
@Geczy
Geczy / migrate.sh
Last active July 25, 2024 18:33
Migrate Coolify to a new server
#!/bin/bash
# This script will backup your Coolify instance and move everything to a new server. Docker volumes, Coolify database, and ssh keys
# 1. Script must run on the source server
# 2. Have all the containers running that you want to migrate
# Configuration - Modify as needed
sshKeyPath="$HOME/.ssh/your_private_key" # Key to destination server
destinationHost="server.example.com"