Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/scripts/g.sh
Views: 1324
1
set -ev
2
mkdir -p `pwd`/logs
3
export LOGS=`pwd`/logs
4
rm -f $LOGS/log
5
unset INIT_CWD
6
unset PGHOST
7
export DEBUG="cocalc:*"
8
#export DEBUG_CONSOLE="yes"
9
unset DEBUG_CONSOLE
10
11
# Set this COCALC_DISABLE_NEXT to something nonempty to disable nextjs entirely
12
# which is very helpful when doing development.
13
# export COCALC_DISABLE_NEXT="yes"
14
15
#export COCALC_DISABLE_API_VALIDATION=yes
16
#export NO_RSPACK_DEV_SERVER=yes
17
18
while true; do
19
if [ x"$COCALC_PROD_MODE" = "x" ]; then
20
pnpm hub
21
else
22
pnpm hub-prod
23
fi
24
sleep 1
25
done
26
27