Difference between revisions of "Service/Social Help"

From Sugar Labs
Jump to navigation Jump to search
Line 16: Line 16:
 
Shfr: 8000
 
Shfr: 8000
 
Discourse: 8002
 
Discourse: 8002
 
Discourse container ssh: 2222 - use ``sudo ./discourse/launcher ssh app``
 
  
 
== Setup ==
 
== Setup ==
Line 24: Line 22:
  
 
     cd /srv/socialhelp/discourse
 
     cd /srv/socialhelp/discourse
 +
   
 +
    # Generate the container - will take some time
 +
    sudo ./launcher rebuild app
 +
   
 +
    sudo ./launcher start app
  
    # Remove the old one
+
Then the re director:
    sudo docker rmi local_discourse/app
 
  
     # Generate the container - will take some time
+
    cd /srv/socialhelp/shfr
     sudo ./launcher bootstrap app
+
 
 +
    docker pull samdroid/shfr
 +
 
 +
     # Get id of old instance
 +
    docker ps
 +
     docker kill [id]
  
     sudo ./launcher start app
+
     docker run -d -p 8000:8000 -v /data:/srv/socialhelp/shfr samdroid/shfr "$(cat forums.json)"

Revision as of 05:13, 9 October 2014

Hostnames & Emails

socialhelp.sugarlabs.org use.socialhelp.sugarlabs.org


Hosted On

[Machine/justice|Freedom] using docker.

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

Ports

Shfr: 8000 Discourse: 8002

Setup

First do the discourse:

   cd /srv/socialhelp/discourse
   
   # Generate the container - will take some time
   sudo ./launcher rebuild app
   
   sudo ./launcher start app

Then the re director:

   cd /srv/socialhelp/shfr
   docker pull samdroid/shfr
   # Get id of old instance
   docker ps
   docker kill [id]
   docker run -d -p 8000:8000 -v /data:/srv/socialhelp/shfr samdroid/shfr "$(cat forums.json)"