slate icon indicating copy to clipboard operation
slate copied to clipboard

SSL with Changing IP

Open niedfelj opened this issue 5 years ago • 3 comments

Problem

The new setup tries to load assets from the external IP instead of localhost requiring that certs constantly be regenerated

Replication steps

Install the latest slate

More Information

Can you at least update the documentation to explain the reasoning behind this? It was much easier before to have everything loading from localhost.

niedfelj avatar Feb 05 '19 18:02 niedfelj

Also, the instructions here forget to mention that you need to run mkcert -install

https://shopify.github.io/slate/docs/create-a-self-signed-ssl-certificate

niedfelj avatar Feb 05 '19 18:02 niedfelj

Can someone also please explain why there are 3 different ways to view dev (shopify domain, localhost, and local IP/external). Given that the preview bar is completely broken and has been since October #420 for localhost and local IP, I'm still accessing via shopify domain, but am not sure what the differences are.

niedfelj avatar Feb 06 '19 12:02 niedfelj

@niedfelj I'm not on the Shopify team, but can contribute this:

The localhost domain will inject styles without refreshing the page. This is automatically opened in your browser when you run npm start.

The shopify domain requires changes be uploaded/pushed before things are viewable here.

Developing "locally" with Slate is interesting/confusing though, as it relies on an externally hosted database and API.

simgooder avatar Jul 31 '19 20:07 simgooder