chr15m / sitefox

Node + cljs backend web framework
https://chr15m.github.io/sitefox/
MIT License
279 stars 7 forks source link

Windows install stalling #39

Open mmeroberts opened 4 months ago

mmeroberts commented 4 months ago

I started a Powershell in Admin mode:

I ran this npm init sitefox-shadow-fullstack myapp

followed by npm install On windows I found no make so installed it using choco install make

Than ran make watch and I only see part of the environment set up:

make watch
make -j2 watcher server
make[1]: Entering directory 'C:/Users/.../Documents/projects/myapp'
npx shadow-cljs watch server app
"waiting for devserver.js to appear."
process_begin: CreateProcess(NULL, rm -f devserver.js; until [ -f devserver.js -a -d .shadow-cljs ]; do sleep 1; done; echo "devserver.js appeared. starting.", ...) failed.
make (e=2): The system cannot find the file specified.
make[1]: *** [Makefile:23: server] Error 2
make[1]: *** Waiting for unfinished jobs....
shadow-cljs - config: C:\Users\...\Documents\projects\myapp\shadow-cljs.edn
shadow-cljs - socket connect failed, server process dead?
shadow-cljs - server version: 2.27.5 running at http://localhost:9630
shadow-cljs - nREPL server started on port 49538
shadow-cljs - watching build :server
shadow-cljs - watching build :app
[:server] Configuring build.
[:app] Configuring build.
[:app] Compiling ...
[:server] Compiling ...
[:server] Build completed. (133 files, 0 compiled, 0 warnings, 5.45s)
[:app] Build completed. (142 files, 0 compiled, 0 warnings, 5.71s)

It seems to be stuck at this point

chr15m commented 4 months ago

Hey, thanks for reporting this bug. It looks like the Makefile is failing at this step, which waits for devserver.js to appear and then runs it:

CreateProcess(NULL, rm -f devserver.js; until [ -f devserver.js -a -d .shadow-cljs ]; do sleep 1; done; echo "devserver.js appeared. starting.", ...)

Do you know of an equivalent translation to Windows shell? Or maybe I need to build a small nbb script to do this part. :thinking: