Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Update Makefile with tracker generation (#2356)

Adam Rutkowski0c23e6ec573a
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 3e8903f7bc..bcb4de2c8a 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 613a6402a7..3a249c9ad1 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