mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	scripts: Run generate_secrets.py during the upgrade process.
Now that generate_secrets.py is idempotent, this allows us to conveniently add new secrets whenever they are required.
This commit is contained in:
		@@ -66,6 +66,11 @@ subprocess.check_call([os.path.join(deploy_path, "scripts", "lib", "create-produ
 | 
			
		||||
subprocess.check_call([os.path.join(deploy_path, "scripts", "lib", "install-node"),
 | 
			
		||||
                       deploy_path])
 | 
			
		||||
 | 
			
		||||
# Generate any new secrets that were added in the new version required.
 | 
			
		||||
# TODO: Do caching to only run this when it has changed.
 | 
			
		||||
subprocess.check_call([os.path.join(deploy_path, "scripts", "setup", "generate_secrets.py"),
 | 
			
		||||
                       "--production"])
 | 
			
		||||
 | 
			
		||||
# And then, building/installing the static assets.
 | 
			
		||||
if args.from_git:
 | 
			
		||||
    # Note: The fact that this is before we apply puppet changes means
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user