These are chat archives for ushahidi/Community

6th
Feb 2017
Arturo
@ArturoQuintana
Feb 06 2017 13:45
good morning @davidlosada
How are you?
I would like to ask you a few things about Ushahidi and its URL
Ushbot
@ushbot
Feb 06 2017 13:52
[David Losada, Ushahidi] hi Arturo, what is your question?
Arturo
@ArturoQuintana
Feb 06 2017 13:52
Hi @davidlosada
thank you so much for your time
Can we change the URL that is currently in use?
In case we can do it, how can we do that?
Ushbot
@ushbot
Feb 06 2017 13:54
[David Losada, Ushahidi] in what way would you like to change it?
Arturo
@ArturoQuintana
Feb 06 2017 13:55
We now have bb.fiu.edu, but we have reserved a new domain and want to change the name to ushahidi.informus.us
Ushbot
@ushbot
Feb 06 2017 13:56
[David Losada, Ushahidi] mm I think all you would need to change is the server names in your nginx or apache configurations (depending on what you use)
[David Losada, Ushahidi] and rebuild the client with the appropriate backend url
Arturo
@ArturoQuintana
Feb 06 2017 13:57
oook, then, we must to rebuild the client...
Ushbot
@ushbot
Feb 06 2017 13:58
[David Losada, Ushahidi] yea, do you recall the step where you set BACKEND_URL before running gulp build?
Arturo
@ArturoQuintana
Feb 06 2017 13:59
I use to use these commands to update the client
sudo git pull
sudo npm install
sudo gulp build
sorry
git pull
npm install
gulp build
Ushbot
@ushbot
Feb 06 2017 14:00
[David Losada, Ushahidi] right, and you probably have an .env file with the BACKEND_URL variable in the same folder?
Arturo
@ArturoQuintana
Feb 06 2017 14:00
let me see
I have deployment.env.encrypted in platform-client folder
but anything else related to .env file
Ushbot
@ushbot
Feb 06 2017 14:03
[David Losada, Ushahidi] mm maybe you modified a file to set the backend url .. or is the backend served under bb.fiu.edu as well?
Arturo
@ArturoQuintana
Feb 06 2017 14:06
I do not think so
DocumentRoot /var/www/html/platform/httpdocs
ServerName weblib02.fiu.edu
DocumentRoot /var/www/html/platform-client/server/www
ServerName bb.fiu.edu
Ushbot
@ushbot
Feb 06 2017 14:07
[David Losada, Ushahidi] mm then weblib02.fiu.edu has to be set somewhere in the client.. maybe you modified a file to set it?
Arturo
@ArturoQuintana
Feb 06 2017 14:09
I must say that I started this job a couple of months ago, and I found everything as I explained.
:-|
Ushbot
@ushbot
Feb 06 2017 14:10
[David Losada, Ushahidi] well, that configuration has to be somewhere, otherwise the client wouldn’t be able to connect to the backend
Arturo
@ArturoQuintana
Feb 06 2017 14:10
let me see
Ushbot
@ushbot
Feb 06 2017 14:11
[David Losada, Ushahidi] you may try the command grep -r weblib02 . to recursively search the files in the client folder
[David Losada, Ushahidi] the output will probably be very big, because there’s a file with a huge single line that will probably match
Arturo
@ArturoQuintana
Feb 06 2017 14:11
that's right
Ushbot
@ushbot
Feb 06 2017 14:12
[David Losada, Ushahidi] but if you save to a file and look at the whole output.. it may help
Arturo
@ArturoQuintana
Feb 06 2017 14:12
It was very big
Arturo
@ArturoQuintana
Feb 06 2017 14:18
here it is the result
Ushbot
@ushbot
Feb 06 2017 14:23
[David Losada, Ushahidi] I would say to just create the .env file with contents `BACKEND_URL=”http://weblib02.fiu.edu”` by now .. and change that URL and rebuild when you decide to switch urls
Arturo
@ArturoQuintana
Feb 06 2017 14:24
ok
Ushbot
@ushbot
Feb 06 2017 14:26
[David Losada, Ushahidi] as far as I can tell from the contents of your website, that variable must have been set at some point before building
Arturo
@ArturoQuintana
Feb 06 2017 14:29
ok
I have created the file deployment.env
I have moved this file to the client
I have specified BACKEND_URL="http://weblib02.fiu.edu" inside this file
Ushbot
@ushbot
Feb 06 2017 14:31
[David Losada, Ushahidi] the file should be named just .env
Arturo
@ArturoQuintana
Feb 06 2017 14:32
got it
Now it's just about changing the apache configuration and rebuilding the client
Arturo
@ArturoQuintana
Feb 06 2017 14:39
?
Ushbot
@ushbot
Feb 06 2017 14:42
[David Losada, Ushahidi] I would think so, yes
Arturo
@ArturoQuintana
Feb 06 2017 14:43
let me see and I will let you know
Arturo
@ArturoQuintana
Feb 06 2017 15:02
Ok, it's not working, but it's a problem from the hosting
I will keep you posted!
Ushbot
@ushbot
Feb 06 2017 15:02
[David Losada, Ushahidi] alright, good luck!
Arturo
@ArturoQuintana
Feb 06 2017 15:03
thanks in advance!