Moved to puma 3 start command via rails s.

This commit is contained in:
Martin Edenhofer 2016-03-02 09:10:55 +01:00
parent 86a35b8ada
commit 7dcd98a5e8

View file

@ -10,8 +10,11 @@ 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')"
pumactl start --pidfile tmp/pids/puma.pid -d -p $APP_PORT -e $RAILS_ENV
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/puma.pid --bind 0.0.0.0 --port $APP_PORT
script/websocket-server.rb start -d -p $WS_PORT
script/scheduler.rb start
sleep 5