mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	The manage.py change effectively switches the Zulip production server to use the virtualenv, since all of our supervisord commands for the various Python services go through manage.py. Additionally, this migrates the production scripts and Nagios plugins to use the virtualenv as well.
		
			
				
	
	
		
			17 lines
		
	
	
		
			404 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			404 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env python
 | |
| from __future__ import absolute_import
 | |
| from __future__ import print_function
 | |
| 
 | |
| import os
 | |
| from os.path import dirname, abspath
 | |
| import sys
 | |
| 
 | |
| BASE_DIR = dirname(dirname(abspath(__file__)))
 | |
| sys.path.append(BASE_DIR)
 | |
| import scripts.lib.setup_path_on_import
 | |
| 
 | |
| os.environ['DJANGO_SETTINGS_MODULE'] = 'zproject.settings'
 | |
| from django.conf import settings
 | |
| 
 | |
| print(getattr(settings, sys.argv[1]))
 |