leanconvert / create-react-static-atlassian-connect-addon

A boilerplate for static Atlassian Connect add-ons built on top of create-react-app
MIT License
32 stars 10 forks source link

How to connect to localhost confluence instance? http://localhost:1990/confluence #3

Open pitikdmitry opened 5 years ago

pitikdmitry commented 5 years ago

I set "atlassian-connect-dev-instance-host": "http://localhost:1990/confluence" in package.json, but when i load add_on url in confluence it shows me error: Could not install the file https://005966d2.ngrok.io/atlassian-connect.json. Check that the file is valid. image

vitaliysobur commented 5 years ago

Hi @pitikdmitry, can you please confirm you use the cloud version of Confluence?

pitikdmitry commented 5 years ago

Hi. If I use cloud version all is OK. I started local instance of confluence with atlas-run and I can’t connect react add on to it.

vitaliysobur commented 5 years ago

As far as I know atlas-run spins up a server instance on your local machine. So it is different from the cloud one. That is why the add-on fails to install

pitikdmitry commented 5 years ago

Yes you are right, but why i cant connect to local instance? What is the difference between connecting to the local instance and the cloud instance?

vitaliysobur commented 5 years ago

This addon uses atlassian connect framework that is supported by the cloud instances only. Server instances use different approach / framework for building Addons and usually built in Java

pitikdmitry commented 5 years ago

thanks for the reply, do you know how to connect react Addon to the server instance?