Skip to content

Instantly share code, notes, and snippets.

@renegare
Created November 27, 2014 22:10
Show Gist options
  • Save renegare/ed5d4b4ff0b73676a66d to your computer and use it in GitHub Desktop.
Save renegare/ed5d4b4ff0b73676a66d to your computer and use it in GitHub Desktop.
Handy makefile tasks
PROJ = $(shell basename `pwd`)
# Given a running fig container with the name "app" that exposes port 80, run the following task
# ```
# $ make ngrok-secure USER=username PASS=password
# ```
ngrok-secure: export PORT=$(shell fig port app 80 | sed 's/^.*:\([0-9][0-9]*\)$\/\1/')
ngrok-secure:
ngrok -httpauth=$(USER):$(PASS) -subdomain=$(PROJ)-`whoami` `boot2docker ip`:$(PORT)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment