Services/PythonServer: Difference between revisions

no edit summary
(Created page with "The Python Sync Server is composed of four parts: * ''server-core'': library containing various helpers. * ''server-storage'': the storage server. * ''server-reg'': the user r...")
 
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
* ''server-storage'': the storage server.  
* ''server-storage'': the storage server.  
* ''server-reg'': the user registration/management server.
* ''server-reg'': the user registration/management server.
* ''server-full'': a server that reunites the server and the user servers so
* ''server-full'': a server that reunites the storage and the reg servers so you can run everything in a single box.
you can run everything in a single box.
 
The Continuous Integration server is located here: https://hudson.mozilla.org/job/Sync




Line 24: Line 25:
* sqlite3  
* sqlite3  
* mercurial  
* mercurial  
* the python-profiler package under Debian or
* the python-profiler package under Debian or Ubuntu
Ubuntu
 


= Installing the full server =
= Installing the full server =
Line 37: Line 36:
This command will create an isolated Python environment and pull all the
This command will create an isolated Python environment and pull all the
required dependencies in it. A ''bin'' directory is created and contains a
required dependencies in it. A ''bin'' directory is created and contains a
'''paster'' command that can be used to run the server, using the built-in web
''paster'' command that can be used to run the server, using the built-in web
server.  
server.  


Line 50: Line 49:
and the user APIs. Once the server is launched, you can point your Firefox Sync
and the user APIs. Once the server is launched, you can point your Firefox Sync
to "http://localhost:5000" and make sure it works.
to "http://localhost:5000" and make sure it works.


= Running behind Apache =
= Running behind Apache =
Line 58: Line 56:
implementation (WSGI-based):
implementation (WSGI-based):


- Apache + mod_wsgi
* Apache + mod_wsgi
- lighhtpd + flup + fcgi
* lighttpd + flup + fcgi
- Nginx + uWsgi or GUnicorn or Spawn
* Nginx + uWsgi or GUnicorn or Spawn


Here's an example of an Apache setup:
Here's an example of an Apache setup:
Line 84: Line 82:
sure this file loads the right .ini file.
sure this file loads the right .ini file.


TBD: SSL example


= Sync Configuration File =
= Sync Configuration File =


TBD
TBD
Confirmed users
927

edits