mirror of
				https://github.com/Kong/go-pluginserver.git
				synced 2025-10-31 11:36:18 +08:00 
			
		
		
		
	feat(*) accept kong-prefix instead of socket name
This commit replaces the `-socket` flag with `-kong-prefix` and hardcodes the socket name, which is expected by Kong to be in the Kong prefix.
This commit is contained in:
		
							
								
								
									
										4
									
								
								test.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								test.sh
									
									
									
									
									
								
							| @@ -12,14 +12,14 @@ rq --help >/dev/null | ||||
|  | ||||
| echo "pwd: $PWD" | ||||
|  | ||||
| SOCKET='sock' | ||||
| SOCKET='go_pluginserver.sock' | ||||
|  | ||||
| if pgrep go-pluginserver -l; then | ||||
| 	PREVIOUS_SERVER="yes" | ||||
| else | ||||
| 	echo "starting server..." | ||||
| 	[ -S "$SOCKET" ] && rm "$SOCKET" | ||||
| 	./go-pluginserver -socket "$SOCKET" & | ||||
| 	./go-pluginserver -kong-prefix . & | ||||
| 	pgrep go-pluginserver -l | ||||
| 	sleep 0.1s | ||||
| fi | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Guilherme Salazar
					Guilherme Salazar