mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
21 lines
663 B
Bash
Executable file
21 lines
663 B
Bash
Executable file
#!/bin/bash
|
|
RAILS_ENV=$1
|
|
APP_PORT=$2
|
|
WS_PORT=$3
|
|
|
|
export ZAMMAD_SETTING_TTL=15
|
|
|
|
rails r "Setting.set('developer_mode', true)"
|
|
rails r "Setting.set('websocket_port', '$WS_PORT')"
|
|
rails r "Setting.set('fqdn', '$IP:$BROWSER_PORT')"
|
|
rails r "Setting.set('chat_agent_idle_timeout', '45')"
|
|
|
|
echo "env used for script/build/test_startup.sh $1 $2 $3"
|
|
echo "export RAILS_ENV=$RAILS_ENV"
|
|
echo "export IP=$IP"
|
|
echo "export BROWSER_PORT=$BROWSER_PORT"
|
|
|
|
#rails s puma -d --pid tmp/pids/server.pid --bind 0.0.0.0 --port $APP_PORT
|
|
pumactl start --pidfile tmp/pids/server.pid -d -p $APP_PORT -e $RAILS_ENV
|
|
script/websocket-server.rb start -d -p $WS_PORT
|
|
script/scheduler.rb start
|