Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ngrok in background?

Tags:

terminal

ngrok

I tried running ngrok in the background with following command:

./ngrok -subdomain test -config=ngrok.cfg 80 & 

the process is running:

[1] 3866 

and the subdomain doesn't work.

It works with:

./ngrok -subdomain test -config=ngrok.cfg 80 

Does anyone know what is going wrong here?

Thank you.

like image 775
martinenzinger Avatar asked Nov 27 '14 03:11

martinenzinger


People also ask

Can I use Ngrok in production?

NGROK is a great tool, but when you are moving to a production environment there are some things to be aware of. Without a license, the NGROK URL will expire after a short period. A single simple tunnel is a single point of failure and can work against you if not managed properly.

How long can you run Ngrok?

Problems using Ngrok One of the new limits is a session expiration time of 2 hours. When an Ngrok connection reaches this length it stops working, and the only way to restore it is by stopping and restarting the ngrok command, which causes a new randomly generated URL to be used.


1 Answers

as explained here

ngrok -log=stdout 80 > /dev/null & 
like image 144
martinenzinger Avatar answered Sep 21 '22 09:09

martinenzinger