Skip to content

Conversation

@AronNovak
Copy link
Contributor

@AronNovak AronNovak commented May 22, 2025

Connect to psql on a remote server

@amitaibu amitaibu requested a review from mpscholten July 2, 2025 17:04
psql: ## Connects to the running postgresql server
@psql -h $$PWD/build/db -d app

psql-remote: ## Connects to the postgresql server of a deployed instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we should try to stick this into the nix configuration as a devenv script, similarly how deploy-to-nixos is also a devenv script: https://github.com/digitallyinduced/ihp/blob/master/flake-module.nix#L273

Then it could be called by running psql-remote ihp-app

Copy link
Collaborator

@amitaibu amitaibu Jul 2, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the advantage of this way over make?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As that command depends directly on the nix configuration (by calling nix directly) it feels like it should belong there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants