Update Makefile with tracker generation (#2356)

This commit is contained in:
Adam Rutkowski 2022-10-24 12:52:15 +02:00 committed by GitHub
parent 3ddfda94a1
commit 0c23e6ec57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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`.

View File

@ -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