5
11
Fork
You've already forked tomato
1

Post-hatchbox cleanup #133

Merged
edwardloveall merged 2 commits from el-hatchbox-cleanup into main 2026年04月02日 16:38:53 +02:00

We now deploy on Hatchbox. This means we need a way to
run commands on the server, get database backups, and deploy via the command
line. This introduces those tools and some Hatchbox documentation.

This fixes the bin/restore_db tool to restore from the hatchbox db. Hatchbox
does not expose the database directly (which is good, overall). So to get access
to it, we first need to set up a proxy to forward psql connections (port 5432)
to your computer. Then the database can be accessed using normal psql commands,
but now on port 65432.

I found these two answers very helpful:

We now deploy on [Hatchbox](https://hatchbox.io). This means we need a way to run commands on the server, get database backups, and deploy via the command line. This introduces those tools and some Hatchbox documentation. This fixes the bin/restore_db tool to restore from the hatchbox db. Hatchbox does not expose the database directly (which is good, overall). So to get access to it, we first need to set up a proxy to forward psql connections (port 5432) to your computer. Then the database can be accessed using normal psql commands, but now on port `65432`. I found these two answers very helpful: - https://superuser.com/a/1314015 - https://stackoverflow.com/a/26470428/638966
bin/deploy Outdated
@ -0,0 +1,85 @@
#!/usr/bin/env ruby
Author
Owner
Copy link

There's a lot of stuff going on in these new or changed bin scripts. Please ask questions if something is confusing.

There's a lot of stuff going on in these new or changed bin scripts. Please ask questions if something is confusing.
edwardloveall changed target branch from el-fix-time-range-filter to main 2026年03月31日 17:25:04 +02:00
edwardloveall force-pushed el-hatchbox-cleanup from e6c6fc3bb7
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
to cd6e9366c7
All checks were successful
ci/woodpecker/pr/ci Pipeline was successful
2026年03月31日 17:47:54 +02:00
Compare
edwardloveall deleted branch el-hatchbox-cleanup 2026年04月02日 16:38:55 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
rootable/tomato!133
Reference in a new issue
rootable/tomato
No description provided.
Delete branch "el-hatchbox-cleanup"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?