-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Database routes are incorrect or missing custom port. #802
Comments
@SheriefAlaa I just tested this and it works correctly for me. The one thing that stands out for me is that the POST is going to port 80 instead of port 4200? According to your config, your app is running on port 4200, so the post to the DB should be http://10.4.4.58:4200/db/_session Can you further debug this issue by adding the following lines to the bottom of your config.js? console.log('CouchDB URL:'+config.couchDbURL);
console.log('CouchAuthDbURL URL:'+config.couchAuthDbURL);
console.log('Server URL: '+config.serverURL); One you startup your app (eg
Also make sure you wait until you see the "Build successful" message before trying to login. This build can take a while and if you try to login before the build is complete, it won't work. |
@jkleinsc Using Here's the output of the console.log messages:
I have provided few screenshots to clarify: Question: I am eventually going to run Hospital run on a production server that has another existing app that uses nginx. I will use the same nginx site to run both apps, give Hospital-run a location and point it to a directory. Which version should I use? frontend (take dist/, install CouchDB) or use Hospitalrun-server? Thanks for your help so far. |
@SheriefAlaa you should use https://github.com/HospitalRun/hospitalrun-server for production use. It uses node.js for the webserver but if you really want to run it through nginx I'm sure you could proxy it through nginx. https://github.com/HospitalRun/hospitalrun-frontend is just the frontend of HospitalRun and really you only should be running As far as you particular issue is concerned, the problem is you changed serverPort to 80, but When you do that in your output you should see:
|
@jkleinsc Alright, thanks a ton for your timely replies. |
Expected behavior:
To login into Hospital run.
Actual behavior:
jquery.js:9536 POST http://10.4.4.58/db/_session 404 (Not Found).
Steps to reproduce:
Setup couchdb, change the ip and port (mine are 10.4.4.58:8888)
edit server/config.js to have something similar to this:
Setup Hospital run (that includes ./script/initcouch.sh sherief 991199 which was successful), build it, run it through nginx.
OS and Browser:
Vagrant/Ubuntu 14.04, Chrome.
The text was updated successfully, but these errors were encountered: