From 0c23e6ec573a3234cd21160fbe3e01d2b9ba68f1 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Mon, 24 Oct 2022 12:52:15 +0200 Subject: [PATCH] Update Makefile with tracker generation (#2356) --- CONTRIBUTING.md | 3 ++- Makefile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3e8903f7b..bcb4de2c8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -17,7 +17,8 @@ Make sure Docker, Elixir, Erlang and Node.js are all installed on your developme 3. Run `mix ecto.migrate` to build the database schema. 4. Run `npm ci --prefix assets` to install the required client-side dependencies. 5. Run `npm ci --prefix tracker` to install the required tracker dependencies. - 6. Run `mix download_country_database` to fetch geolocation database + 6. Run `npm run deploy --prefix tracker` to generate tracker files in `priv/tracker/js` + 7. Run `mix download_country_database` to fetch geolocation database 3. Run `make server` or `mix phx.server` to start the Phoenix server. 4. The system is now available on `localhost:8000`. diff --git a/Makefile b/Makefile index 613a6402a..3a249c9ad 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,7 @@ install: ## Run the initial setup mix download_country_database npm install --prefix assets npm install --prefix tracker + npm run deploy --prefix tracker server: ## Start the web server mix phx.server