Changes

Jump to navigation Jump to search
636 bytes added ,  00:09, 20 September 2017
no edit summary
Line 1: Line 1:  
== Hostnames & Emails ==
 
== Hostnames & Emails ==
   −
socialhelp.sugarlabs.org
+
[https://socialhelp.sugarlabs.org 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]
 +
 +
socialhelp AT sugarlabs DOT org
    
== Hosted On ==
 
== Hosted On ==
   −
[Machine/justice|Freedom] using docker.
+
[[Machine/justice|Freedom]] using docker
 
  −
All the stuff lives in ``/srv/socialhelp``
     −
=== Ports ===
+
All the stuff lives in <code>/srv/socialhelp</code>
   −
Shfr: 8000
+
It uses the <code>socialhelp</code> partition which is 20G ext4 on the lvm
Discourse: 8002
      
== Setup ==
 
== Setup ==
Line 21: Line 21:  
First do the discourse:
 
First do the discourse:
   −
    cd /srv/socialhelp/discourse
+
cd /srv/socialhelp/discourse
   
+
    # Generate the container - will take some time
+
<nowiki>#</nowiki> Generate the container - will take some time
    sudo ./launcher rebuild app
+
sudo ./launcher rebuild app
   
+
    sudo ./launcher start app
+
sudo ./launcher start app --docker-args "-m 5g --cpuset='6-7'"
 +
Most of the helpful discourse documentation is found [https://meta.discourse.org/t/how-do-i-update-my-docker-image-to-latest/23325 on their discourse forum].
   −
Then the re director:
+
Then the re-director & sso:
   −
     cd /srv/socialhelp/shfr
+
     container.yml start /containers/org.sugarlabs.socialhelp_sso/ -d
 +
    container.yml start /containers/org.sugarlabs.use-socialhelp/ -d
   −
     docker pull samdroid/shfr
+
     # If they fail to start, make sure that they are built:
 +
    container.yml build /containers/org.sugarlabs.socialhelp_sso/
 +
    container.yml build /containers/org.sugarlabs.use-socialhelp/
   −
    # Get id of old instance
+
== Todo ==
    docker ps
  −
    docker kill [id]
     −
    docker run -d -p 8000:8000 -v /data:/srv/socialhelp/shfr samdroid/shfr "$(cat forums.json)"
+
* how to upgrade to next version of discourse

Navigation menu