Files
artcraft/blog/zola_example/scripts/serve_deploy.sh
T
2024-08-26 12:06:32 -04:00

13 lines
266 B
Bash
Executable File

#!/bin/bash
if [ -d "deploy" ]; then
pushd deploy
echo "Running Python HTTP Server on deploy"
python3 -m http.server 9000
echo "Closing Python HTTP Server"
popd
else
echo "deploy directory does not exist."
echo "please build the deployment first."
fi