bigcommerce / stencil-cli

BigCommerce Stencil emulator for local theme development
https://developer.bigcommerce.com/stencil-docs
BSD 4-Clause "Original" or "Old" License
102 stars 140 forks source link

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

Open focusede opened 1 year ago

focusede commented 1 year ago

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

lord2800 commented 1 year ago

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

focusede commented 1 year ago

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

AndrewBarber commented 1 year ago

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

jp06 commented 11 months ago

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).