chore(deploy): add haskelseed Alpine startup scripts
Some checks failed
Test / test (push) Has been cancelled

OpenRC init script + RunDevServer env wrapper for the haskelseed build VM
(Alpine 3.23, GHC 9.10.3, IHP 1.5). IHP DevServer binds to 127.0.0.1:8000
so socat forwards 0.0.0.0:8080 → 127.0.0.1:8000 for external access.

Deploy steps are documented in the file headers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-29 13:20:16 +02:00
parent 0fd842768c
commit 68ef06b504
2 changed files with 88 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#!/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"