Help setting up admin site (from the 3 min demo vi...
# support
k
Hey I am just trying to get medplum up and running. I set it up on my linux vm, then tried to access the admin site from the browser. Running from my own postgres and redis (not docker) Passed the healthheck:
Copy code
{
ok: true,
version: "3.2.1-53452d15a",
platform: "linux",
runtime: "v20.14.0",
postgres: true,
redis: true
}
http://24.144.94.136:8103/healthcheck but http://24.144.94.136:3000 just shows a empty screen with some errors and a loading symbol. Logs from the server
Copy code
root@meddyvm:/home/medplum/packages/server# npm run dev

> @medplum/server@3.2.1 dev
> ts-node-dev --poll --respawn --transpile-only --require ./src/otel/instrumentation.ts src/index.ts

[INFO] 19:14:40 ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.2, typescript ver. 5.5.3)
{"level":"INFO","timestamp":"2024-07-18T19:14:47.837Z","msg":"Starting Medplum Server...","configName":"file:medplum.config.json"}
{"level":"INFO","timestamp":"2024-07-18T19:14:48.864Z","msg":"Already seeded"}
{"level":"INFO","timestamp":"2024-07-18T19:14:48.869Z","msg":"Loaded 1 key(s) from the database"}
{"level":"INFO","timestamp":"2024-07-18T19:14:48.895Z","msg":"Server started","port":8103}
screenshot of how the page looks:
r
@kapycaiman , based on your network tab, right now your admin app is set up to hit
localhost:8103
. You will have to modify the
BASE_URL
configuration of the Medplum app to point to your server at
http://24.144.94.136:8103
How you do this will depend on exactly how you are running / hosting the Medplum App
c
Hello @rahul1, @kapycaiman Side question here as I am new and trying to better understand Medplum. By running /home/medplum/packages/server# npm run dev you start only the backend API server, right ? The launch of the web server is not shown here, but has to be done on the side ? (through something like npm run dev in 'packages/app') Thanks in advance
r
yes that's correct @clemso3013
I'll emphasize that
npm run dev
is only intended for running a local development server using Vite. You should use a a proper hosting service if running your own backend service in produciton
we provide guidance on how to use AWS for this purpose: https://www.medplum.com/docs/self-hosting/install-on-aws
s
@khromem @clemso3013 did you guys able solve this, I am also facing same issue, even if my server is up and running when I hit base url with port app is not at all responding
186 Views