How to run hapi fhir server listen on aws public url not just on localhost:8080

246 views
Skip to first unread message

Vikrant Chauhan

unread,
Sep 10, 2020, 2:33:40 AM9/10/20
to HAPI FHIR
Hello All

I have hapi fhir jpa server running on local machine by issuing the following cmd

./hapi-fhir-cli run-server -v dstu3

my server is lsteing on 


But now as i want to deploy it on aws now it still listens on localhost :8080

question: How can i make hapi fhir server to listen on aws server url instead on localhost :8080

Thanks 

James Agnew

unread,
Sep 10, 2020, 9:32:28 AM9/10/20
to Vikrant Chauhan, HAPI FHIR
I wouldn't recommend using the CLI as a deployed/daemon server.

See this project for a deployable server: https://github.com/hapifhir/hapi-fhir-jpaserver-starter

Cheers,
James

--
You received this message because you are subscribed to the Google Groups "HAPI FHIR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hapi-fhir+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hapi-fhir/38636707-74f0-4077-b026-a530c135659fn%40googlegroups.com.

Vikrant Chauhan

unread,
Sep 11, 2020, 5:26:41 AM9/11/20
to HAPI FHIR

Thanks, James

Much Appreciated !!

Man, i am really stuck here. I dont why my docker image is not opening up the server on my local machine.

PFA

Thanks
2.png
1.png
4.png
3.png
5.png

Vikrant Chauhan

unread,
Sep 11, 2020, 5:35:33 AM9/11/20
to HAPI FHIR
one more image


On Thursday, September 10, 2020 at 7:02:28 PM UTC+5:30 james...@gmail.com wrote:
6.png

Khalid Shahin

unread,
Dec 10, 2020, 1:51:54 PM12/10/20
to HAPI FHIR
Did you ever solve this? I am having trouble running HAPI on my local Ubuntu and on AWS as well.

James Agnew

unread,
Dec 10, 2020, 2:04:56 PM12/10/20
to Khalid Shahin, HAPI FHIR
This project is the recommended way to do server deployments. The CLI tool probably could be made to work but will be a fight as it's not designed for that.


Cheers,
James

Khalid Shahin

unread,
Dec 10, 2020, 5:21:50 PM12/10/20
to HAPI FHIR
Yep, that's what I tried originally but made no progress. But I now just realized it might be a low memory problem since the server Instance only had 512 MB of RAM so I'm going to try one with 4 GB.

Thanks,
Khalid

Reply all
Reply to author
Forward
0 new messages