version chapril de mobilizon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
939 B

@bash docker/ "Start"
make start
setup: stop
@bash docker/ "Compiling everything"
docker-compose run --rm api bash -c 'mix deps.get; yarn --cwd "js"; yarn --cwd "js" build:pictures; mix ecto.create; mix ecto.migrate'
docker-compose run --rm api mix ecto.migrate
docker-compose logs -f
start: stop
@bash docker/ "Starting Mobilizon with Docker"
docker-compose up -d api
@bash docker/ "Docker server started"
@bash docker/ "Stopping Mobilizon"
docker-compose down
@bash docker/ "Mobilizon is stopped"
test: stop
@bash docker/ "Running tests"
docker-compose -f docker-compose.yml -f docker-compose.test.yml run api mix test $(only)
@bash docker/ "Done running tests"
docker-compose run --rm api bash -c "mix format && mix credo --strict"
@bash docker/ "Code is now ready to commit :)"
target: init