quran / quran.com-frontend

quran.com frontend
https://quran.com
MIT License
998 stars 361 forks source link

NOT RESOLVED. [Error: connect ECONNREFUSED 127.0.0.1:3000] #300

Closed uslika closed 8 years ago

uslika commented 8 years ago

{ error: { [Error: connect ECONNREFUSED 127.0.0.1:3000] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 3000, response: undefined }, type: '@@quran/surahs/LOAD_FAIL' } GET / 200 459.157 ms - - { error: { [Error: connect ECONNREFUSED 127.0.0.1:3000] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 3000, response: undefined }, type: '@@quran/surahs/LOAD_FAIL' } { error: { [Error: connect ECONNREFUSED 127.0.0.1:3000] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 3000, response: undefined }, type: '@@quran/surahs/LOAD_FAIL' }

ahmedre commented 8 years ago

i think you need to point to our api server, not to 127.0.0.1. @mmahalwy can we make this the default?

uslika commented 8 years ago

Please help me, i can give server access. My servers at digitalocean

mmahalwy commented 8 years ago

@uslika just means that you dont have a backend server running. Like @ahmedre said

uslika commented 8 years ago

IP Address: 198.211.113.92 Username: root password: ereneren

Please Help me for the sake of Allah @mmahalwy

ahmedre commented 8 years ago

the data for our backend isn't open source right now, so your only option is to point at api.quran.com:3000.

uslika commented 8 years ago

I dont know how can i do this. Im student at high school..

uslika commented 8 years ago

root@node-2gb-nyc1-01:~/quran.com-frontend# npm start --production

quran@0.0.0 start /root/quran.com-frontend NODE_PATH="./src" node ./start

  ==> 🌎  ENV=production
  ==> ✅  Server is listening at http://localhost:8000
  ==> 🎯  API at http://api.quran.com:3000

GET / 200 463.973 ms - - GET /public/main.css - - ms - - GET /public/fc1ab9888c1919fbc808cd9f1dbd9c46.png - - ms - - GET /public/main.css - - ms - - GET /public/fc1ab9888c1919fbc808cd9f1dbd9c46.png - - ms - - GET / 200 481.794 ms - - GET /public/main.css - - ms - - GET /public/fc1ab9888c1919fbc808cd9f1dbd9c46.png - - ms - - GET / 200 320.895 ms - -

http://198.211.113.92:8000 @mmahalwy

uslika commented 8 years ago

Thanks for not help. Good night

mmahalwy commented 8 years ago

@uslika when running frontend you need to set API_URL env to quran.com

dashohoxha commented 8 years ago

+1 for making api.quran.com:3000 the default setting.

@uslika don't make your root password public, there are 21 people now that know about it.

uslika commented 8 years ago

Same i cant install. @dashohoxha Can you help me?

dashohoxha commented 8 years ago

I have never installed it, so I don't know more than you about it. Just follow the instruction from mmahalwy.

uslika commented 8 years ago

i followed the instructions but I cant install. im trying 3 days ..

uslika commented 8 years ago

Can you install this for me? Please.. @mmahalwy

sharabash commented 8 years ago

we had the default setting in development.env http://quran.com:3000, what happened @mmahalwy? let's revert to this until we get a stable scheme up for pointing to production for production, a staging API instance for develop (so that we don't break it), etc.

@uslika edit the development.env file and replace the value that says http://localhost:3000 with http://quran.com:3000, then save that file, close it, and run these two commands:

npm install npm run dev

the first command will install any dependencies the frontend requires, the second command will run the development server. assuming it starts, then go to http://localhost:8001 in your browser and you should see your development frontend server instance working

+1 for more documentation, @sharabash need to fix this in development.env and document more thoroughly in README.md, maybe will do tomorrow.

@uslika, a word of warning, some things might be broken because you will be using the production API instance (quran.com:3000) against your localhost development instance of the frontend server which might have some code depending on more new features in the development api.

argh, +1 for more documentation and real DevOps. @mmahalwy maybe I should make whatever I dev'd stable then just focus on those two until we have cleaner more developer friendly ops/docs stuff in place

On Tue, May 17, 2016, 7:31 PM uslika notifications@github.com wrote:

Can you install this for me? Please.. @mmahalwy https://github.com/mmahalwy

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/quran/quran.com-frontend/issues/300#issuecomment-219755717

uslika commented 8 years ago

Now i try "@uslika edit the development.env file and replace the value that says http://localhost:3000 with http://quran.com:3000, then save that file, close it, and run these two commands:

npm install npm run dev"

Thank you so much

uslika commented 8 years ago

YOU ARE AMAZING! God bless you bro!

mmahalwy commented 8 years ago

Closing