also-pack won't work
This commit is contained in:
parent
968367c434
commit
0740b31087
@ -13,16 +13,8 @@ vagrant-spk vm up
|
|||||||
vagrant-spk vm halt
|
vagrant-spk vm halt
|
||||||
vagrant-spk vm up
|
vagrant-spk vm up
|
||||||
|
|
||||||
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/
|
xdg-open http://local.sandstorm.io:6090/
|
||||||
vagrant-spk dev
|
vagrant-spk dev
|
||||||
fi
|
|
||||||
|
|
||||||
echo "If everything went well:"
|
echo "If everything went well:"
|
||||||
echo
|
echo
|
||||||
|
@ -4,10 +4,9 @@ require 'httparty'
|
|||||||
require 'time'
|
require 'time'
|
||||||
|
|
||||||
version = ARGV[0]
|
version = ARGV[0]
|
||||||
also_pack = ARGV[1]
|
|
||||||
|
|
||||||
unless version
|
unless version
|
||||||
puts "Usage: #{$0} <version> --also-pack"
|
puts "Usage: #{$0} <version>"
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
@ -40,17 +39,6 @@ end
|
|||||||
|
|
||||||
File.open('.sandstorm/sandstorm-pkgdef.capnp', 'w') { |fh| fh.print lines.join }
|
File.open('.sandstorm/sandstorm-pkgdef.capnp', 'w') { |fh| fh.print lines.join }
|
||||||
|
|
||||||
if also_pack == '--also-pack'
|
|
||||||
system 'bin/test_hugo --build-only'
|
|
||||||
system 'bin/pack_hugo'
|
|
||||||
|
|
||||||
puts <<~TXT
|
|
||||||
|
|
||||||
Now do this:
|
|
||||||
|
|
||||||
* Test fresh and upgrade install
|
|
||||||
TXT
|
|
||||||
else
|
|
||||||
puts <<~TXT
|
puts <<~TXT
|
||||||
|
|
||||||
Now do this:
|
Now do this:
|
||||||
@ -60,4 +48,3 @@ else
|
|||||||
* bin/pack_hugo
|
* bin/pack_hugo
|
||||||
* Test upgrade install
|
* Test upgrade install
|
||||||
TXT
|
TXT
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user