progress on conversion to tailwind
This commit is contained in:
parent
6a872124c6
commit
6e2843c60e
110 changed files with 4997 additions and 1691 deletions
23
entrypoint.sh
Executable file
23
entrypoint.sh
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
# Make the script exit when a command fails.
|
||||
set -e
|
||||
|
||||
# Define a cleanup function to handle CTRL-C (SIGINT)
|
||||
cleanup() {
|
||||
echo "CTRL-C caught! Shutting down Docker Compose services..."
|
||||
docker compose down
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Set trap to call cleanup() when SIGINT (Ctrl-C) is received.
|
||||
trap cleanup SIGINT
|
||||
|
||||
# Restart compose services.
|
||||
echo "Restarting compose services..."
|
||||
docker compose down
|
||||
docker compose up -d
|
||||
|
||||
docker compose exec web bash -c "cd /code/theme/static_src && npm run dev" || true
|
||||
|
||||
docker compose down
|
||||
echo "Done!"
|
||||
Loading…
Add table
Add a link
Reference in a new issue