Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .do/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: agentlogs
region: sfo3

services:
- name: web
github:
repo: tomjnsn/agentlogs
branch: main
deploy_on_push: true
dockerfile_path: Dockerfile
http_port: 3000
instance_count: 1
instance_size_slug: basic-xxs
routes:
- path: /
envs:
- key: DATABASE_URL
scope: RUN_TIME
value: ${db.DATABASE_URL}
- key: S3_ENDPOINT
scope: RUN_TIME
value: CHANGE_ME
- key: S3_BUCKET
scope: RUN_TIME
value: CHANGE_ME
- key: S3_REGION
scope: RUN_TIME
value: CHANGE_ME
- key: S3_ACCESS_KEY
scope: RUN_TIME
type: SECRET
value: CHANGE_ME
- key: S3_SECRET_KEY
scope: RUN_TIME
type: SECRET
value: CHANGE_ME
- key: BETTER_AUTH_SECRET
scope: RUN_TIME
type: SECRET
value: CHANGE_ME
- key: WEB_URL
scope: RUN_TIME
value: CHANGE_ME
- key: GITHUB_CLIENT_ID
scope: RUN_TIME
value: CHANGE_ME
- key: GITHUB_CLIENT_SECRET
scope: RUN_TIME
type: SECRET
value: CHANGE_ME

databases:
- name: db
engine: PG
version: "16"
size: db-s-1vcpu-1gb
num_nodes: 1
5 changes: 4 additions & 1 deletion packages/web/scripts/migrate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ const client = postgres(DATABASE_URL, { max: 1 });
const db = drizzle(client);

try {
await migrate(db, { migrationsFolder: resolve(__dirname, "../migrations") });
await migrate(db, {
migrationsFolder: resolve(__dirname, "../migrations"),
migrationsSchema: "public",
});
console.log("[migrate] Migrations applied successfully.");
} catch (error) {
console.error("[migrate] Migration failed:", error);
Expand Down
Loading