Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coopdevs OCB mirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Odoo
Coopdevs OCB mirror
Commits
6c60619a
Commit
6c60619a
authored
12 years ago
by
Antony Lesuisse
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] wsgi wrapper
bzr revid: al@openerp.com-20120924103648-uhxteeu6nd8batvd
parent
70f6e847
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
openerp-wsgi.py
+4
-3
4 additions, 3 deletions
openerp-wsgi.py
openerp/__init__.py
+1
-1
1 addition, 1 deletion
openerp/__init__.py
openerp/service/__init__.py
+2
-2
2 additions, 2 deletions
openerp/service/__init__.py
with
7 additions
and
6 deletions
openerp-wsgi.py
+
4
−
3
View file @
6c60619a
...
...
@@ -7,7 +7,7 @@
#
# For generic wsgi handlers a global application is defined.
# For uwsgi this should work:
# $ uwsgi --http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
# $ uwsgi
_python
--http :9090 --pythonpath . --wsgi-file openerp-wsgi.py
#
# For gunicorn additional globals need to be defined in the Gunicorn section.
# Then the following command should run:
...
...
@@ -18,15 +18,16 @@ import openerp
#----------------------------------------------------------
# Common
#----------------------------------------------------------
openerp
.
multi_process
=
True
# Nah!
# Equivalent of --load command-line option
openerp
.
conf
.
server_wide_modules
=
[
'
web
'
]
conf
=
openerp
.
tools
.
config
# Path to the OpenERP Addons repository (comma-separated for
# multiple locations)
conf
[
'
addons_path
'
]
=
'
/home/openerp/addons/trunk,/home/openerp/web/trunk/addons
'
conf
[
'
addons_path
'
]
=
'
/home/wis/stuff/version/openerp/source/addons/6.1,/home/wis/stuff/version/openerp/source/web/6.1/addons
'
conf
[
'
addons_path
'
]
=
'
../../addons/trunk,../../web/trunk/addons
'
# Optional database config if not using local socket
#conf['db_name'] = 'mycompany'
...
...
This diff is collapsed.
Click to expand it.
openerp/__init__.py
+
1
−
1
View file @
6c60619a
...
...
@@ -50,7 +50,7 @@ wsgi.register_wsgi_handler = wsgi.wsgi_server.register_wsgi_handler
# e.g. database update or cache invalidation. Each process has also
# its own copy of the data structure and we don't need to care about
# locks between threads.
multi_process
=
Tru
e
multi_process
=
Fals
e
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
This diff is collapsed.
Click to expand it.
openerp/service/__init__.py
+
2
−
2
View file @
6c60619a
...
...
@@ -78,8 +78,6 @@ def start_internal():
def
start_services
():
"""
Start all services including http, netrpc and cron
"""
openerp
.
multi_process
=
False
# Nah!
start_internal
()
# Initialize the HTTP stack.
...
...
@@ -120,6 +118,8 @@ def stop_services():
openerp
.
modules
.
registry
.
RegistryManager
.
delete_all
()
def
start_services_workers
():
openerp
.
multi_process
=
True
# Nah!
openerp
.
service
.
workers
.
Multicorn
(
openerp
.
service
.
wsgi_server
.
application
).
run
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment