36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
init:
|
|
@bash mobilizon/mobilizon/docker/message.sh "Start"
|
|
make start
|
|
|
|
setup: stop
|
|
@bash mobilizon/mobilizon/docker/message.sh "Mobilizon: Compiling everything"
|
|
docker-compose run --rm mobilizon bash -c 'mix deps.get; npm ci; npm run build:pictures; mix ecto.create; mix ecto.migrate'
|
|
|
|
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
|
|
|
|
build: stop
|
|
@bash mobilizon/mobilizon/docker/message.sh "Mobilizon: Compiling backend"
|
|
docker-compose run --rm mobilizon bash -c 'mix ecto.create'
|
|
|
|
migrate:
|
|
docker-compose run --rm mobilizon mix ecto.migrate
|
|
|
|
logs:
|
|
docker-compose logs -f
|
|
|
|
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"
|
|
|
|
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"
|
|
|
|
target: init
|