Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for leaving an ngrok process open and reusing an existing ngrok process instead of starting a new one on every process. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottmartinnet
Copy link

@scottmartinnet scottmartinnet commented Jun 1, 2016

I needed my ngrok process to persist across multiple Ruby processes so that I could test web service callbacks in a multiprocess environment without a constantly changing ngrok hostname.

On initial start, it saves the details of the running process to a file. On subsequent starts, it then reads that file, verifies that the process still running, and then uses it instead of running a new process.

… ngrok process instead of starting a new one on every process.
@wizardishungry
Copy link

@scottmartinnet You may want to require 'json'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants