Self-hosted admin account login? #934
-
Hello, I've successfully started PubPub platform on self-hosted system. I had to do some Postgres configuration and then edit jobs/.env.development to put my postgres password in the DATABASE_URL environment variable. I also had some problems with "hydration" but disabling all of my browser plugins seems to have fixed that. Now when connecting to localhost:3000 (which I found in the pnpm console) I get a login screen, but no matter what I enter (not that I have any idea what to enter) I get "Error: An unexpected error occurred (Error ID ". How is the admin user configured, and how can I access the server? I also have a warning about "SENTRY_AUTH_TOKEN is not set", but that doesn't seem to be the problem. Storybook is running correctly on port 6006, or so I presume, since I have lots of configuration options. I'm logging accesses to "/login?redirectTo=%2F" in my core#dev environment but I am not logging errors anywhere that I can see. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Also because maybe this matters... I successfully ran "pnpm build --filter core", but "pnpm build --filter storybook" and "pnpm build" fail with errors about being unable to resolve a wide variety of things. Some examples of the errors are:
I got those by commenting out the offending lines to see what else it would complain about. To cleanup thoroughly and try again, I did:
|
Beta Was this translation helpful? Give feedback.
-
We are currently working on streamlining the self-hosting (non-dev) setup! I will update you in a week or so with more details, as it should be possible to properly self host Platform by then. One of the main things missing is the ability to setup an admin account, which we add soon! |
Beta Was this translation helpful? Give feedback.
-
Is there any update on self-hosting setup instructions? |
Beta Was this translation helpful? Give feedback.
Hi, thanks for the follow up! We now have experimental support for self-hosting, to be found in the
/self-host
folder here: https://github.com/pubpub/platform/tree/main/self-host/README.mdlet me know how it goes! the documentation is not in a "ready" state yet and you may encounter some bugs, so please just use this to experiment for now!