
Co-author: Mark Burnett <mark.m.burnett@gmail.com> Co-author: Samantha Blanco <spblanco.1@gmail.com> Change-Id: I2e6af00b7905d9070f79b8c536385ebdae877d50
15 lines
231 B
Bash
Executable File
15 lines
231 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
PORT=${PORT:-9000}
|
|
|
|
if [ "$1" = 'server' ]; then
|
|
exec uwsgi \
|
|
--http :${PORT} \
|
|
--paste config:/etc/promenade/api-paste.ini \
|
|
--enable-threads -L \
|
|
--workers 4
|
|
fi
|
|
|
|
exec ${@}
|