#!/usr/bin/env bash

set -ex

cp .env ./admin_dev/.env
cp .env.local ./admin_dev/.env.local
cp .env.example ./admin_dev/.env.example

chmod +x ./admin_dev/*.sh

docker compose pull

docker compose -p ierg_4210 kill admin_dev
docker compose -p ierg_4210 down admin_dev
docker compose -p ierg_4210 up -d admin_dev
docker compose -p ierg_4210 exec -it admin_dev bash
