Open liuqixing opened 11 months ago
is there anybody who can help me?
Am I correct in that this is not an issue, but more of a question?
In case your issue is a question, those are usually well received over at the gitter chat: gitter chat
yes please use gitter chat,, gun does have a Dockerfile
my thought is to find the docker docs about how to run a project with a Dockerfile
git clone https://github.com/amark/gun.git
cd gun
docker build -t gun .
docker run -p 8765:8765 -t gun
then open http://localhost:8765
I wrote the gun server: ` const port = ParamUtils.getPort(); const host = ParamUtils.getHost(); const peers = ParamUtils.getPeers();
And deploy it by Docker. And then i wrote a client to connect to it, but it did not work. The server does not receive anything. And client get an error code 1006 here is client code:
const peers = ParamUtils.getPeers( peers ); const gun = Gun( { peers : peers } ); gun.get( 'sync' ).put( data, ( ack ) => { });