Skip to content

Commit

Permalink
fix: Change how workspace process is run in background (#5513)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwalters512 committed Mar 12, 2022
1 parent 526a7c8 commit f282382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -11,7 +11,7 @@ start: start-support
start-nodemon: start-support
@nodemon -L server.js
start-workspace-host: start-support kill-running-workspaces
@node workspace_host/interface.js &
@node workspace_host/interface.js

kill-running-workspaces:
@docker/kill_running_workspaces.sh
Expand Down
5 changes: 2 additions & 3 deletions docker/init.sh
@@ -1,9 +1,8 @@
#!/bin/bash

echo 'Starting PrairieLearn...'
make -s -C /PrairieLearn start-workspace-host
if [[ $NODEMON == "true" ]]; then
make -s -C /PrairieLearn start-nodemon
make -s -C /PrairieLearn -j 2 start-workspace-host start-nodemon
else
make -s -C /PrairieLearn start
make -s -C /PrairieLearn -j 2 start-workspace-host start
fi

0 comments on commit f282382

Please sign in to comment.