Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: How do you reset a local deployment Postgres database? #1936

Open
1 task done
jymchng opened this issue Dec 21, 2024 · 1 comment
Open
1 task done

[Bug]: How do you reset a local deployment Postgres database? #1936

jymchng opened this issue Dec 21, 2024 · 1 comment
Labels
S-Triage Awaiting decision for what to do T-Bug Something isn't working

Comments

@jymchng
Copy link

jymchng commented Dec 21, 2024

What happened?

#[shuttle_runtime::main]
async fn axum(
    #[shuttle_shared_db::Postgres] pool: PgPool,
    #[shuttle_runtime::Metadata] metadata: shuttle_runtime::DeploymentMetadata,
) -> ShuttleAxum {
    ...
}

With the above, shuttle gives me a locally deployed Postgres database when running shuttle run. However, I want to reset that database, how do I do that?

Version

v0.49.0

Which operating system(s) are you seeing the problem on?

Linux

Which CPU architectures are you seeing the problem on?

No response

Relevant log output

No response

Duplicate declaration

  • I have searched the issues and there are none like this.
@jymchng jymchng added S-Triage Awaiting decision for what to do T-Bug Something isn't working labels Dec 21, 2024
@jonaro00
Copy link
Member

You can use docker ps to find the postgres container, then docker stop and docker rm to delete it. Then you should get a new one on the next run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Triage Awaiting decision for what to do T-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants