Closed uslika closed 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?
Please help me, i can give server access. My servers at digitalocean
@uslika just means that you dont have a backend server running. Like @ahmedre said
IP Address: 198.211.113.92 Username: root password: ereneren
Please Help me for the sake of Allah @mmahalwy
the data for our backend isn't open source right now, so your only option is to point at api.quran.com:3000.
I dont know how can i do this. Im student at high school..
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
Thanks for not help. Good night
@uslika when running frontend you need to set API_URL
env to quran.com
+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.
Same i cant install. @dashohoxha Can you help me?
I have never installed it, so I don't know more than you about it. Just follow the instruction from mmahalwy.
i followed the instructions but I cant install. im trying 3 days ..
Can you install this for me? Please.. @mmahalwy
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
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
YOU ARE AMAZING! God bless you bro!
Closing
{ 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' }