Changes

From SME Server
Jump to navigationJump to search
1,015 bytes added ,  06:11, 6 May 2018
Line 8: 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  
 
without building locally those might be required  
  yum install python27-python-sqlalchemy  scl-utils scl-utils-build  python27-python-virtualenv python27-build   --enablerepo=centos-sclo*
+
  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 37: 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 50: 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 ===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,239

edits

Navigation menu