@@ -58,6 +58,7 @@ type server struct {
5858	keyPath           * string 
5959	serviceTokenPath  * string 
6060	webURL            * string 
61+ 	demoSiteEnabled   * bool 
6162	// MySQL 
6263	mysqlUser         * string 
6364	mysqlPass         * string 
@@ -98,6 +99,7 @@ func RegisterCommand(r cli.CommandRegistry, p cli.ParentCommand) cli.Command {
9899		CmdClause :        cmd ,
99100		port :             cmd .Flag ("port" , "Port to bind to." ).Default ("9090" ).Int (),
100101		project :          cmd .Flag ("project" , "Google Cloud project name." ).String (),
102+ 		demoSiteEnabled :  cmd .Flag ("demo-site-enabled" , "Enable demo site." ).Default ("false" ).Bool (),
101103		certPath :         cmd .Flag ("cert" , "Path to TLS certificate." ).Required ().String (),
102104		keyPath :          cmd .Flag ("key" , "Path to TLS key." ).Required ().String (),
103105		serviceTokenPath : cmd .Flag ("service-token" , "Path to service token." ).Required ().String (),
@@ -556,15 +558,17 @@ func (s *server) registerPubSubProcessorMap(
556558			userEventPersister ,
557559		)
558560
559- 		demoOrganizationCreationNotifier  :=  processor .NewDemoOrganizationCreationNotifier (
560- 			processorsConfigMap [processor .DemoOrganizationCreationNotifierName ],
561- 			* s .webURL ,
562- 			logger ,
563- 		)
564- 		processors .RegisterProcessor (
565- 			processor .DemoOrganizationCreationNotifierName ,
566- 			demoOrganizationCreationNotifier ,
567- 		)
561+ 		if  * s .demoSiteEnabled  {
562+ 			demoOrganizationCreationNotifier  :=  processor .NewDemoOrganizationCreationNotifier (
563+ 				processorsConfigMap [processor .DemoOrganizationCreationNotifierName ],
564+ 				* s .webURL ,
565+ 				logger ,
566+ 			)
567+ 			processors .RegisterProcessor (
568+ 				processor .DemoOrganizationCreationNotifierName ,
569+ 				demoOrganizationCreationNotifier ,
570+ 			)
571+ 		}
568572
569573		redisCache  :=  cachev3 .NewRedisCache (persistentRedisClient )
570574		evaluationCountEventPersister , err  :=  processor .NewEvaluationCountEventPersister (
0 commit comments