stencil-cli icon indicating copy to clipboard operation
stencil-cli copied to clipboard

Is there a way to host Stencil CLI while in development?

Open focusede opened this issue 1 year ago • 4 comments

Hey all

I am helping a customer convert from one store theme to another. I am doing a lot of work making adjustments in code, but there is a UX person that wants to do some work too, or at least preview what I see. I am wondering if there is a way you work with allowing the CLI to be hosted in a limited fashion to one or more viewers? I would prefer not to have to instruct non developers on how to run the theme locally.

I guess I could do some sort of NPM port proxy and allow them onto my development machine but it would be better if I could proxy this out somewhere public for them to view. Thanks

focusede avatar Mar 05 '23 20:03 focusede

There's a --tunnel option that looks like it does what you want.

lord2800 avatar Mar 06 '23 16:03 lord2800

Thanks, I don't see any other documentation except listing the command, going to dig a bit. Thanks

focusede avatar Mar 06 '23 17:03 focusede

@focusede I've used ngrok & localtunnel before for something similar. Not sure if it's a bit late for a response for you here!

AndrewBarber avatar Apr 24 '23 14:04 AndrewBarber

Cloudflare Tunnel and tunnelto are also options. Just in case you don't want to set up an ngrok account, and if localtunnel happens to be down (Stencil CLI's --tunnel uses this internally).

jp06 avatar Nov 07 '23 17:11 jp06