mirror of
				https://github.com/therootcompany/greenlock-express.js.git
				synced 2025-11-03 21:42:47 +00:00 
			
		
		
		
	using with pm2 #26
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	
	No description provided.
		
		Delete Branch "%!s()"
	 
	Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
sorry for asking here
is it possible to use on windows with pm2 cluster mode ?
This is actually the perfect place to ask that.
Short answer
I don't know.
If you turn off clustering in pm2 and turn on clustering in Greenlock Express, that may work.
It will not work with
pm2s limited built-in cluster support. You could probably hack it together somehow, but you're probably better off using more standard tools.Alternatives
You could use something like:
nssmorservicemanon Windowssystemdon Linuxlaunchctlon macOSLong Answer
Greenlock Express cannot work in
clustermode with only partial support. It needs to have access to themasterprocess and needs to have direct communication with eachworkerprocess.pm2s built-in clustering spawns worker processes, but since it doesn't know about Greenlock, and Greenlock doesn't know about it, there's no way for the servers to communicate.I'd be happy to create a custom "Greenlock PM2" module as contract work, but it's not something that I personally use.
PM2 Docs
Based on what I see here ( https://pm2.keymetrics.io/docs/usage/process-management/#process-configuration ) it seems like you should be able to have it treat Greenlock the same as it would treat an external
pythonorrubyprocess and run an external version ofnoderather than doing internal forking.