hugo-sandstorm/bin/test_hugo

30 lines
524 B
Plaintext
Raw Normal View History

2020-07-28 10:59:12 +00:00
#!/bin/bash
2022-06-01 03:07:07 +00:00
build_only=$1
2020-07-28 10:59:12 +00:00
cd .sandstorm
vagrant destroy -f
cd ..
2021-10-14 12:11:39 +00:00
# this will fail
vagrant-spk vm up
# guest additions seems to require a reboot now...
vagrant-spk vm halt
2020-07-28 10:59:12 +00:00
vagrant-spk vm up
2021-10-14 12:11:39 +00:00
2022-06-01 03:07:07 +00:00
if [[ $build_only == "--build-only" ]]; then
echo "Building for packing only, no web browser will open!"
vagrant-spk dev & pid=$!
# 5 minutes should be enough time...
sleep 600
kill -INT $pid
else
xdg-open http://local.sandstorm.io:6090/
vagrant-spk dev
fi
2020-07-28 10:59:12 +00:00
echo "If everything went well:"
echo
echo "bin/pack_hugo"