summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2e4225aca..4830dcf45 100644
--- a/Makefile
+++ b/Makefile
@@ -380,6 +380,15 @@ cover: ## Runs the golang coverage tool. You must run the unit tests first.
$(GO) tool cover -html=cover.out
$(GO) tool cover -html=ecover.out
+test-data: start-docker ## Add test data to the local instance.
+ $(GO) run $(GOFLAGS) $(GO_LINKER_FLAGS) $(PLATFORM_FILES) sampledata -w 1
+
+ @echo You may need to restart the Mattermost server before using the following
+ @echo ====================================================================================
+ @echo Login with a system admin account email=user-0@sample.mattermost.com password=user-0
+ @echo Login with a regular account email=user-1@sample.mattermost.com password=user-1
+ @echo ====================================================================================
+
run-server: start-docker ## Starts the server.
@echo Running mattermost for development