Update DB schema before creating service
This commit is contained in:
parent
0e460e8cc0
commit
baae9af2fa
@ -43,7 +43,7 @@ $STD sudo -u postgres psql -c "ALTER ROLE $DB_USER SET timezone TO 'UTC';"
|
|||||||
} >>~/litellm.creds
|
} >>~/litellm.creds
|
||||||
msg_ok "Set up PostgreSQL"
|
msg_ok "Set up PostgreSQL"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Configuring LiteLLM"
|
||||||
mkdir -p /opt
|
mkdir -p /opt
|
||||||
cat <<EOF >/opt/litellm/litellm.yaml
|
cat <<EOF >/opt/litellm/litellm.yaml
|
||||||
general_settings:
|
general_settings:
|
||||||
@ -52,6 +52,10 @@ general_settings:
|
|||||||
store_model_in_db: true
|
store_model_in_db: true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
uv --directory=/opt/litellm run litellm --config /opt/litellm/litellm.yaml --use_prisma_db_push --skip_server_startup
|
||||||
|
msg_ok "Configured LiteLLM"
|
||||||
|
|
||||||
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/litellm.service
|
cat <<EOF >/etc/systemd/system/litellm.service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LiteLLM
|
Description=LiteLLM
|
||||||
@ -64,6 +68,7 @@ Restart=always
|
|||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
systemctl enable -q --now litellm
|
systemctl enable -q --now litellm
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user