Jump to content

Service/Social Help: Difference between revisions

From Sugar Labs
No edit summary
Line 3: Line 3:
[https://socialhelp.sugarlabs.org socialhelp.sugarlabs.org]
[https://socialhelp.sugarlabs.org socialhelp.sugarlabs.org]


[http://use.socialhelp.sugarlabs.org use.socialhelp.sugarlabs.org]
[http://use.socialhelp.sugarlabs.org use.socialhelp.sugarlabs.org] (HTTP only, redirects to use-socialhelp on https)


[https://use-socialhelp.sugarlabs.org use-socialhelp.sugarlabs.org]
[https://use-socialhelp.sugarlabs.org use-socialhelp.sugarlabs.org]
Line 18: Line 18:


Shfr: 8000
Shfr: 8000
Discourse: 8002
Discourse: 8002 (2222 ssh)


== Setup ==
== Setup ==

Revision as of 05:55, 19 December 2014

Hostnames & Emails

socialhelp.sugarlabs.org

use.socialhelp.sugarlabs.org (HTTP only, redirects to use-socialhelp on https)

use-socialhelp.sugarlabs.org

socialhelp AT sugarlabs DOT org

Hosted On

Freedom using docker.

All the stuff lives in ``/srv/socialhelp``

Ports

Shfr: 8000 Discourse: 8002 (2222 ssh)

Setup

First do the discourse:

   cd /srv/socialhelp/discourse
   
   # Generate the container - will take some time
   sudo ./launcher rebuild app
   
   sudo ./launcher start app --docker-args "-m 4g --cpuset='6-7'"

Then the re director:

   docker pull samdroid/aslo-shfr
   # Get id of old instance
   docker ps
   docker kill [id]
   docker run -e API_KEY=DISCOURSE_API_KEY -m 500m --cpuset="7" -c 1 -p 8000:8000 --name="SHFR-Beaver" -d samdroid/aslo-shfr:latest 

The api key is stored at: /srv/socialhelp/discourse_api_key.txt