algobasket / PeatioCryptoExchange

An open-source Crypto-Currency exchange. Peatio v3.0 Coming Soon !
https://www.peatio.info
186 stars 205 forks source link

Nginx SITE DON'T LOAD #37

Closed TTcoinDeveloper closed 5 years ago

TTcoinDeveloper commented 5 years ago

Can I get some help with the last part of building peatio

image

it is done but when I load the UI I get

image

can you help me?

TTcoinDeveloper commented 5 years ago

fixed

algobasket commented 5 years ago

Hope that fixed if you have any other issues lemme know thanks !

TTcoinDeveloper commented 5 years ago

Yes I do, I am trying to connect to UI externally so it should be 0.0.0.0:3000 and not localhost:3000 the ting is what file do I edit to make this change? Everytime I navigate to a page it gets directed to localhost:3000 and of course externally the page will not load..... so what do I do?

TTcoinDeveloper commented 5 years ago

I have added host: 0.0.0.0 to database.yml and also changed boot.rb to use 0.0.0.0 or is it nginx itself that needs configs or could it be limited in production mode please point me in the right direction here

algobasket commented 5 years ago

0.0.0.0:3000 is for internal server communication not for external use .For external you need to use loopback localhost or 127.0.0.1 if you're working locally not on any external vps instance . You only need to add on application.yml and nowhere else

algobasket commented 5 years ago

also go to config/nginx.conf and change elementaryOs to deploy

TTcoinDeveloper commented 5 years ago

I have already done this and succeeded

TTcoinDeveloper commented 5 years ago

The problem arises when I navigate to funds or any other page except main page

TTcoinDeveloper commented 5 years ago

It redirects to localhost:3000

TTcoinDeveloper commented 5 years ago

and fails

algobasket commented 5 years ago

Try to use it via Vagrant if you're installing locally

algobasket commented 5 years ago

Peatio Version 3 I will release soon and it will be easy for you !

TTcoinDeveloper commented 5 years ago

Ok I can do this

TTcoinDeveloper commented 5 years ago

I am planning on hosting my own coins via rpc so I would definately look forward to the new version test it out first

pankaj9310 commented 5 years ago

@TTcoinDeveloper Hi change URL_HOST in application.yml file URL_HOST: localhost:3000 to domain.com or your ip address