Ruby on Rails 8.1 app backed by MongoDB and Redis. Git snapshot from 2026-03-22 (no upstream releases yet). Requires Ruby 4.0, libproj (rgeo-proj4 C ext), and ImageMagick (rszr C ext).
22 lines
379 B
Bash
22 lines
379 B
Bash
#!/bin/ksh
|
|
|
|
daemon="${TRUEPREFIX}/share/mapforge/bin/thrust"
|
|
daemon_user="_mapforge"
|
|
daemon_flags=""
|
|
|
|
pexp="ruby${MODRUBY_BINREV}.*puma"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_bg=YES
|
|
rc_reload=NO
|
|
|
|
rc_pre() {
|
|
export RAILS_ENV=production
|
|
export RAILS_LOG_TO_STDOUT=true
|
|
export BUNDLE_PATH="${TRUEPREFIX}/share/mapforge/vendor/bundle"
|
|
cd "${TRUEPREFIX}/share/mapforge" || exit 1
|
|
}
|
|
|
|
rc_cmd $1
|