Is there a recommended way to run the Prefect serv...
# ask-community
f
Is there a recommended way to run the Prefect server in prod? ie other than
prefect server start
?
t
Hi Frank, check out the server helm chart https://github.com/PrefectHQ/prefect-helm/tree/main
f
Thank you. The helm chart seems to also run the same command:
Copy code
args:
            - prefect
            - server
            - start
            - --port
            - {{ .Values.service.targetPort | quote }}
t
Right but the helm chart is the recommended way to deploy server in prod.
j
If you aren't deploying in a container, you would write a script to add to systemd. My typical script for wrapping a python command would add: 1. Set uid so it's not running as root 2. Setting up path to the right virtual environment 3. Prefect uses other environment variables you'll probably want to start 4. Creating a pidfile 5. Running the actual command I haven't written such a script for prefect yet, though