Changes

From SME Server
Jump to navigationJump to search
1,332 bytes added ,  06:11, 6 May 2018
Line 1: Line 1: −
here the procedure to compile and install on a SME9 / CentOS 6 system  
+
{{Warning box|This is a work in progress, you can contribute to improve this, just do not use it in production}}
 +
 
 +
{{WIP box|}}here the procedure to compile and install on a SME9 / CentOS 6 system  
 
== Sync server ==
 
== Sync server ==
 
according to http://moz-services-docs.readthedocs.io/en/latest/howtos/run-sync-1.5.html
 
according to http://moz-services-docs.readthedocs.io/en/latest/howtos/run-sync-1.5.html
Line 6: Line 8:  
  yum install smeserver-extrarepositories-centos-sclo --enablerepo=smedev,smecontribs
 
  yum install smeserver-extrarepositories-centos-sclo --enablerepo=smedev,smecontribs
 
  signal-event yum-modify
 
  signal-event yum-modify
  yum install make git-core  gcc gcc-c++  phyton27-build scl-utils scl-utils-build python27-python-devel  python27-python-virtualenv python27-build   --enablerepo=centos-sclo*
+
  yum install make git-core  gcc gcc-c++  phyton27-build scl-utils scl-utils-build python27-python-devel  python27-python-virtualenv python27-build python27-mod_wsgi  --enablerepo=centos-sclo*
    +
without building locally those might be required
 +
yum install python27-python-sqlalchemy  scl-utils scl-utils-build  python27-python-virtualenv python27-build python27-mod_wsgi  --enablerepo=centos-sclo*
    
=== download and build===
 
=== download and build===
    +
cd /opt
 
  git clone https://github.com/mozilla-services/syncserver
 
  git clone https://github.com/mozilla-services/syncserver
 
  cd syncserver  
 
  cd syncserver  
 
  scl enable python27 bash
 
  scl enable python27 bash
 
  make build
 
  make build
 +
 +
this will install via pip in the ./local dir all the required tools.
 +
 +
Successfully built cornice pyramid WebOb simplejson SQLAlchemy zope.component configparser mozsvc tokenserver alembic pymysql-sa umemcache SyncStorage wsgiproxy repoze.lru zope.interface konfig Mako python-editor MarkupSafe
 +
 +
Installing collected packages: WebOb, repoze.lru, zope.interface, zope.deprecation, venusian, translationstring, PasteDeploy, pyramid, simplejson, cornice, gunicorn, requests, SQLAlchemy, six, linecache2, traceback2, argparse, unittest2, zope.event, zope.component, configparser, konfig, mozsvc, MarkupSafe, Mako, python-editor, python-dateutil, alembic, boto, hawkauthlib, Paste, PyBrowserID, PyMySQL, pymysql-sa, testfixtures, tokenlib, umemcache, tokenserver, pyramid-hawkauth, wsgiproxy, waitress, beautifulsoup4, webtest, SyncStorage
    
then test it :
 
then test it :
Line 33: Line 44:     
  [syncserver]
 
  [syncserver]
  public_url = http://localhost:5000/
+
  public_url = <nowiki>http://localhost:5000/</nowiki>
    
The default value of “public_url” will work for testing purposes on your local machine. For final deployment, change it to the external, publicly-visible URL of your server.
 
The default value of “public_url” will work for testing purposes on your local machine. For final deployment, change it to the external, publicly-visible URL of your server.
Line 46: Line 57:  
  [syncserver]
 
  [syncserver]
 
  sqluri = pymysql://username:password@db.example.com/sync
 
  sqluri = pymysql://username:password@db.example.com/sync
 +
 +
then Generate your secret and paste it on the  secret line<syntaxhighlight lang="bash">
 +
secret =
 +
</syntaxhighlight>
    
=== better db support ===
 
=== better db support ===
Line 70: Line 85:  
* http://moz-services-docs.readthedocs.io/en/latest/howtos/run-fxa.html#howto-run-fxa
 
* http://moz-services-docs.readthedocs.io/en/latest/howtos/run-fxa.html#howto-run-fxa
   −
[Category:Howto]
+
[[Category:Howto]]
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu