21 lines
354 B
Bash
21 lines
354 B
Bash
#!/bin/bash
|
|
|
|
check_installed() {
|
|
if ! [ -x "$(command -v $1)" ]; then
|
|
echo "Error: $1 is not installed." >&2
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
check_installed docker-compose
|
|
check_installed yarn
|
|
|
|
docker-compose stop nginx
|
|
|
|
# Generate Nuxt.js static website
|
|
pushd frontend || exit 1
|
|
yarn run generate
|
|
popd || exit 1
|
|
|
|
docker-compose up -d --build nginx
|