Install api with prod extra requires

This commit is contained in:
jo 2021-10-01 17:49:33 +02:00
parent 691b564ad5
commit 6013434393
2 changed files with 4 additions and 3 deletions

View File

@ -28,10 +28,11 @@ setup(
"django-url-filter",
"markdown",
"model_bakery",
"psycopg2", # TODO: Move to prod requires
],
extras_require={
"prod": [],
"prod": [
"psycopg2",
],
"dev": [
"psycopg2-binary",
],

View File

@ -1057,7 +1057,7 @@ systemInitInstall libretime-analyzer "$web_user"
verbose "...Done"
verbose "\n * Installing API..."
loudCmd "$pip_cmd install ${AIRTIMEROOT}/api"
loudCmd "$pip_cmd install ${AIRTIMEROOT}/api[prod]"
systemInitInstall libretime-api "$web_user"
mkdir -p /etc/airtime
sed -e "s@WEB_USER@${web_user}@g" \