Updated make files/scripts to accomodate execution/building in windows in addition to linux/mac (#4135)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
1a5a624470
Коммит
3bac3a0061
7
Makefile
7
Makefile
@@ -377,22 +377,25 @@ run-fullmap: run-server run-client-fullmap
|
||||
stop-server:
|
||||
@echo Stopping mattermost
|
||||
|
||||
ifeq ($(BUILDER_GOOS_GOARCH),"windows_amd64")
|
||||
wmic process where "Caption='go.exe' and CommandLine like '%go.exe run%'" call terminate
|
||||
wmic process where "Caption='mattermost.exe' and CommandLine like '%go-build%'" call terminate
|
||||
else
|
||||
@for PID in $$(ps -ef | grep "[g]o run" | awk '{ print $$2 }'); do \
|
||||
echo stopping go $$PID; \
|
||||
kill $$PID; \
|
||||
done
|
||||
|
||||
@for PID in $$(ps -ef | grep "[g]o-build" | awk '{ print $$2 }'); do \
|
||||
echo stopping mattermost $$PID; \
|
||||
kill $$PID; \
|
||||
done
|
||||
endif
|
||||
|
||||
stop-client:
|
||||
@echo Stopping mattermost client
|
||||
|
||||
cd $(BUILD_WEBAPP_DIR) && $(MAKE) stop
|
||||
|
||||
|
||||
stop: stop-server stop-client
|
||||
|
||||
restart: restart-server restart-client
|
||||
|
||||
Ссылка в новой задаче
Block a user