2023-12-09 12:54:38 +01:00
|
|
|
init:
|
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Start"
|
|
|
|
make start
|
|
|
|
|
|
|
|
setup: stop
|
2023-12-20 14:23:40 +01:00
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Mobilizon: Compiling everything"
|
2023-12-10 13:19:03 +01:00
|
|
|
docker-compose run --rm mobilizon bash -c 'mix deps.get; npm ci; npm run build:pictures; mix ecto.create; mix ecto.migrate'
|
2023-12-20 14:23:40 +01:00
|
|
|
|
|
|
|
admins:
|
|
|
|
docker-compose up -d
|
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Mobilizon: Create admin user"
|
|
|
|
docker-compose exec mobilizon mix mobilizon.users.new "your@email.com" --admin --password "password"
|
|
|
|
# @bash mobilizon/mobilizon/docker/message.sh "WordPress: Setup instance and creating admin user"
|
|
|
|
# @bash wordpress/setup.sh
|
|
|
|
|
2023-12-19 15:54:07 +01:00
|
|
|
build: stop
|
2023-12-20 14:23:40 +01:00
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Mobilizon: Compiling backend"
|
2023-12-19 15:54:07 +01:00
|
|
|
docker-compose run --rm mobilizon bash -c 'mix ecto.create'
|
2023-12-20 14:23:40 +01:00
|
|
|
|
2023-12-09 12:54:38 +01:00
|
|
|
migrate:
|
2023-12-10 13:19:03 +01:00
|
|
|
docker-compose run --rm mobilizon mix ecto.migrate
|
2023-12-20 14:23:40 +01:00
|
|
|
|
2023-12-09 12:54:38 +01:00
|
|
|
logs:
|
|
|
|
docker-compose logs -f
|
2023-12-20 14:23:40 +01:00
|
|
|
|
2023-12-09 12:54:38 +01:00
|
|
|
start: stop
|
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Starting WordPress and Mobilizon with Docker"
|
|
|
|
docker-compose up -d
|
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Docker containers started"
|
2023-12-20 14:23:40 +01:00
|
|
|
|
2023-12-09 12:54:38 +01:00
|
|
|
stop:
|
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "Stopping WordPress and Mobilizon"
|
|
|
|
docker-compose down
|
|
|
|
@bash mobilizon/mobilizon/docker/message.sh "WordPress and Mobilizon are stopped"
|
2023-12-20 14:23:40 +01:00
|
|
|
|
2023-12-09 12:54:38 +01:00
|
|
|
target: init
|