slate icon indicating copy to clipboard operation
slate copied to clipboard

Using slate on a headless server

Open linuxbastard opened this issue 8 years ago • 2 comments

Problem

I'm trying to move my dev work from themekit to slate. I have a VPS I'd like to use instead of localhost. How do I configure slate to proxy from my server's IP or hostname instead of localhost so I can preview changes? On localhost I assume it's proxying localhost:8080 so I'm guessing it's a setting I can change? Going to https://SERVERIP:8080 just gives me a "Cannot GET /" message.

Replication steps

Start a new theme on a headless server. On yarn start it goes through successfully but doesn't give any warning or instructions about not being able to open a browser

More Information

Server has a subdomain with SSL.

linuxbastard avatar May 05 '18 14:05 linuxbastard

@linuxbastard it sounds like you're pioneering this implementation of Slate more than we have. Afraid I can't be of much help.

The server that runs on localhost:8080 is only intended to be used for development and should not be used to deploy a theme for production. For that, you should be using slate-tools deploy, in which case you don't have a localhost server to worry about.

t-kelly avatar May 06 '18 19:05 t-kelly

Hiyah @t-kelly,

Not really doing anything radical. Just wanted to move the preview out of my station and had the server, so decided to ask. I actually tried to change slate tools config from domain https://localhost to my server's domain, but no joy. There's some routing involved that I haven't found yet.

yarn start, yarn watch, yarn deploy works, but can't get instant preview changes the same way if I'm running slate on my workstation.

linuxbastard avatar May 07 '18 22:05 linuxbastard