Refactored to use config yaml
This commit is contained in:
parent
211afc9130
commit
155e431b2a
@ -48,21 +48,21 @@ msg_ok "Set up PostgreSQL"
|
|||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
mkdir -p /opt
|
mkdir -p /opt
|
||||||
cat <<EOF >/opt/${APPLICATION}.env
|
cat <<EOF >/opt/"${APPLICATION}".yaml
|
||||||
LITELLM_MASTER_KEY=sk-1234
|
general_settings:
|
||||||
DATABASE_URL=postgresql://$DB_USER:$DB_PASS@127.0.0.1:5432/$DB_NAME
|
master_key: sk-1234
|
||||||
STORE_MODEL_IN_DB=true
|
database_url: postgresql://$DB_USER:$DB_PASS@127.0.0.1:5432/$DB_NAME
|
||||||
USE_PRISMA_MIGRATE=true
|
store_model_in_db: true
|
||||||
|
use_prisma_migrate: true
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat <<EOF >/etc/systemd/system/${APPLICATION}.service
|
cat <<EOF >/etc/systemd/system/"${APPLICATION}".service
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=LiteLLM
|
Description=LiteLLM
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
EnvironmentFile=/opt/${APPLICATION}.env
|
ExecStart=litellm --config /opt/"${APPLICATION}".yaml
|
||||||
ExecStart=litellm
|
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user