Shopify / slate

Slate is a toolkit for developing Shopify themes. It's designed to assist your workflow and speed up the process of developing, testing, and deploying themes.
https://shopify.github.io/slate
MIT License
1.28k stars 364 forks source link

SSL with Changing IP #971

Open niedfelj opened 5 years ago

niedfelj commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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.

simgooder commented 4 years ago

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