docs-site icon indicating copy to clipboard operation
docs-site copied to clipboard

Setting up File Watcher and LiveReload on Windows

Open mgroves opened this issue 5 years ago • 4 comments

Step 3 in the readme seems to be Mac/Linux specific:

$ LIVERELOAD=true gulp

I'm not 100% sure what this translates to in Windows. Is LIVERELOAD an environment variable? Why is 'gulp' in there?

mgroves avatar Aug 06 '19 18:08 mgroves

Yes, gulp is the toolchain to start a build, and LIVERELOAD=true tells gulp to refresh the browser tabs when the docs build is done. Following might work for Windows?

C:\> set LIVERELOAD=true
C:\> gulp

jamesnocentini avatar Aug 07 '19 07:08 jamesnocentini

@mgroves does that work? Once we figure this out, I'll add it to the README.

jamesnocentini avatar Aug 12 '19 10:08 jamesnocentini

I guess so, except that I'm getting "No gulpfile found". Is this only supposed to work with a copy of the docs-site repo (I've been trying it on tutorials-contrib). If yes, will it somehow pull in the tutorials-contrib (and other satellite repos)?

mgroves avatar Aug 12 '19 13:08 mgroves

Yes, you'll need a copy of docs-site and tutorials-contrib. I've written some notes for how to setup the workspace specifically for tutorials https://docs.couchbase.com/tutorials/tutorial-template/sample.html#workspace It'd be great to know how those work out, nobody has had a chance to test them out yet.

jamesnocentini avatar Aug 15 '19 12:08 jamesnocentini