radical-api/install
Riley Housden e8cb428fa4
Modify launch script and improve install script
Now universally refers to python3 instead of expecting gunicorn to be on
PATH.
Now installs requirements into system user's environment for use.
2021-11-30 02:02:09 -05:00

7 lines
290 B
Text
Executable file

adduser --system --home /otp/radical-api radical-api
cp -r * /otp/radical-api
sudo -u radical-api python3 -m pip install -r /otp/radical-api/requirements.txt
cp radical-api.service /etc/systemd/system
addgroup --system radical-api
adduser radical-api radical-api
systemd enable radical-api