Skip to content

Changing user properties in db, (extending trail time) #736

Discussion options

You must be logged in to vote

Followup!

I looked at the documentation for Ecto and Elixir and found a solution!

Here is a full guide for changing the trial expiry date

  1. Login to your Plausible instance
    Open the remote console on your plausible instance, (docker ps to find your instance name, mine was hosting-master_plausible_1)
docker exec -it hosting-master_plausible_1 /app/bin/plausible remote
  1. Create a User (Optional)
Plausible.Auth.User.new(%{name: "somename", email: "email@email", password: "123", password_confirmation: "123" }) |> Plausible.Repo.insert
  1. Update the user
Plausible.Repo.get_by(Plausible.Auth.User, email: "[email protected]") |> Ecto.Changeset.change(%{trial_expiry_date: Timex.today() |> Timex.…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wouterdebruijn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant