Add site gen script
This commit is contained in:
parent
0df2d1a45b
commit
3bea4a8298
20
generate-site.sh
Normal file
20
generate-site.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Loading…
x
Reference in New Issue
Block a user