Created
November 27, 2014 22:10
-
-
Save renegare/ed5d4b4ff0b73676a66d to your computer and use it in GitHub Desktop.
Handy makefile tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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