Skip to content

Commit

Permalink
Include ngrok to allow safe remote access
Browse files Browse the repository at this point in the history
  • Loading branch information
Rojo committed Mar 4, 2018
1 parent f54bd8a commit 5fa4f25
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# Forward ports
[
3000 # Rails Puma
3000, # Rails Puma
4040 # ngrok web ui
].each do |p|
config.vm.network :forwarded_port, guest: p, host: p
end
Expand Down
15 changes: 15 additions & 0 deletions provision/box_setup.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,21 @@ if ! dpkg -s yarn; then
fi


# Install Ngrok exposer ######################################################

echo "***************************************************"
echo "Checking for Ngrok... "
echo "***************************************************"
if ! ngrok; then
sudo apt install -y unzip
wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
sudo unzip ngrok-stable-linux-amd64.zip -d /usr/local/bin
rm -rf ngrok-stable-linux-amd64.zip
else
echo "OK"
fi


# Cleaning up #################################################################

echo "***************************************************"
Expand Down

0 comments on commit 5fa4f25

Please sign in to comment.