21 lines
842 B
Text
21 lines
842 B
Text
|
|
#!/bin/sh
|
||
|
|
# Wrapper called by /etc/init.d/interhub — sets required env vars and execs RunDevServer.
|
||
|
|
# Deploy to: /usr/local/bin/interhub-rundevserver (chmod +x)
|
||
|
|
#
|
||
|
|
# IHP_SESSION_SECRET below is a dev placeholder — replace for any non-local deployment.
|
||
|
|
|
||
|
|
GHC_BIN="/nix/store/ssq6yzl7ldy743g15wskzbgryd9zkk7g-ghc-9.10.3-with-packages/bin"
|
||
|
|
|
||
|
|
export PATH="${GHC_BIN}:/usr/local/bin:/usr/bin:/bin"
|
||
|
|
export IHP_LIB="/nix/store/zr688g6g7b41zrilmbggv1rca6xyghbi-ihp-env-var-backwards-compat"
|
||
|
|
export DATABASE_URL="postgresql://ihp:ihp@127.0.0.1/interhub"
|
||
|
|
export PGHOST="127.0.0.1"
|
||
|
|
export IHP_SESSION_SECRET="aabbccddeeff00112233445566778899aabbccddeeff00112233445566778899"
|
||
|
|
export IHP_BASEURL="http://192.168.178.135:8000"
|
||
|
|
export PORT="8000"
|
||
|
|
export GHCRTS="-A256m -M20g"
|
||
|
|
export IHP_ENV="Development"
|
||
|
|
|
||
|
|
cd /root/inter-hub
|
||
|
|
exec "${GHC_BIN}/RunDevServer"
|