glos / habs_portal

HABS Data Portal
Apache License 2.0
0 stars 0 forks source link

Source Reference links in HABs giving Server Error #155

Closed kkoch closed 6 years ago

kkoch commented 6 years ago

From Ed > Can we get the “source reference” links updated to be the new glbuoys link for stations that use the greatlakesbuoys.org url? For some reason our url handling isn’t working to forward it correctly to glbuoys.glos.us

Clarification >

I believe this is because the correct redirected url would need to look like this (without the php) > http://glbuoys.glos.us/45165

(SIDE NOTE: complicating matters, for Toledo Low Service Pump Station which is first in the list, it links to /lsps and there is no /lsps -- it should be tollsps. So that’s another issue - but I think all the other ones would be a one-to-one replace for the url)

@tslawecki is this something easy to fix for the redirect (except for the bad one above)? Or is this something we need RPS to change for the actual link?

tslawecki commented 6 years ago

Letting @gcutrell take a look at it first, and also adding him to the assignees.

gcutrell commented 6 years ago

@cheryldmorse @kknee

Just edited the stations.json file on wms at /var/www/applications/habs_portal/habs_portal/static/json/stations.json and restart the habs_portal and restarted the portal using Luke's instructions from his master documentation. "cd ~" then "workon habs" then "supervisorctl restart habs_portal". Thinking it would pull in the new static data after the restart.

Now habs.glos.us is just loading the map and showing the javascript loading icon. I'll double check any json syntax errors but just wanted to see if any fixes come to mind?

gcutrell commented 6 years ago

@cheryldmorse @kknee Just ran /bin/bash update_habs_portal.sh and everything is working again. Also realized the static files are on synced up with git and so my edits are gone. Is there a git repository somewhere I can get the HABs static files? thanks

christensenmichael0 commented 6 years ago

@tslawecki @gcutrell @kknee @cheryldmorse @Bobfrat I'm fixing this at the moment

kkoch commented 6 years ago

@christensenmichael0 Looks like we still have one more where the source reference needs fixed. Thanks!

christensenmichael0 commented 6 years ago

@kkoch all set

kkoch commented 6 years ago

Love to close the issues. Thanks