Skip to content

Commit

Permalink
Merge pull request #260 from sandstorm-io/use-port-6090
Browse files Browse the repository at this point in the history
Switch vagrant-spk to use port 6090
  • Loading branch information
ocdtrekkie authored Feb 14, 2020
2 parents 090fe0f + 7b83e6e commit 873f794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
vagrant-spk init
# edit .sandstorm/sandstorm-pkgdef.capnp in your editor of choice
vagrant-spk dev
# visit http://local.sandstorm.io:6080 in a web browser
# visit http://local.sandstorm.io:6090 in a web browser
# log in as Alice, the admin account
# launch an instance of the example app, play around with it
# then, press Ctrl-C to stop the tracing vagrant-spk dev
vagrant-spk pack example.spk
# You now have an .spk file. Yay!
# Verify it works by going to http://local.sandstorm.io:6080,
# Verify it works by going to http://local.sandstorm.io:6090,
# select "My Files" -> "Upload an app", select your .spk file,
# upload it, install it, and create a new instance of your app.

Expand Down
14 changes: 7 additions & 7 deletions vagrant-spk
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.guest = "debian"
end
# We forward port 6080, the Sandstorm web port, so that developers can
# visit their sandstorm app from their browser as local.sandstorm.io:6080
# (aka 127.0.0.1:6080).
config.vm.network :forwarded_port, guest: 6080, host: 6080, host_ip: "127.0.0.1"
# We forward port 6090, the vagrant-spk web port, so that developers can
# visit their Sandstorm app from their browser as local.sandstorm.io:6090
# (aka 127.0.0.1:6090).
config.vm.network :forwarded_port, guest: 6090, host: 6090, host_ip: "127.0.0.1"
# Use a shell script to "provision" the box. This installs Sandstorm using
# the bundled installer.
Expand Down Expand Up @@ -202,7 +202,7 @@ if [[ ! -f /host-dot-sandstorm/caches/$SANDSTORM_PACKAGE ]] ; then
fi
if [ ! -e /opt/sandstorm/latest/sandstorm ] ; then
echo -n "Installing Sandstorm version ${SANDSTORM_CURRENT_VERSION}..."
bash /host-dot-sandstorm/caches/install.sh -d -e "/host-dot-sandstorm/caches/$SANDSTORM_PACKAGE" >/dev/null
bash /host-dot-sandstorm/caches/install.sh -d -e -p 6090 "/host-dot-sandstorm/caches/$SANDSTORM_PACKAGE" >/dev/null
echo "...done."
fi
modprobe ip_tables
Expand Down Expand Up @@ -571,11 +571,11 @@ def auto(args):
pack(args)
args.command_specific_args = []

# Success. Bring down the VM for now, since otherwise port 6080
# Success. Bring down the VM for now, since otherwise port 6090
# will be in use.
print('')
print('You can run:')
print('$ vagrant-spk halt')
print('$ vagrant-spk vm halt')
print('')
print('When you are ready to stop thinking about packaging this app.')

Expand Down

0 comments on commit 873f794

Please sign in to comment.