Hello All, Just joined this slack community. Looki...
# ask-community
b
Hello All, Just joined this slack community. Looking forward to learn, collaborate and contribute 🙂 I am new to Prefect ! I am a Python Developer and have many Python Automation Jobs which I maintain for my organization. As of now, my first use case is to just wrap all my scripts in the flow and deploy them to prefect.. so that I can see the runs and schedule them via Prefect UI... I want to confirm if the set up I did looks good or not .. One my
first
Util Server - I have installed Prefect on the server itself and Postgress is installed on the docker on the same server with persistent data volume... The systemd service is setup for prefect server here... Also, i have nginx installed and reverese proxied the whole setup.... On my
Second
server - where all my code/jobs are there - I set up a systemd service for prefect worker (like below)
Copy code
[Unit]
Description=Prefect Worker
After=network.target

[Service]
ExecStart=/usr/local/bin/prefect worker start --pool "cla-infra" --limit 10
Restart=always
User=root
Group=root
WorkingDirectory=/root/
StandardOutput=journal
StandardError=journal

Environment="PREFECT_API_AUTH_STRING=admin:password"
Environment="PREFECT_SERVER_API_AUTH_STRING=admin:password"


[Install]
WantedBy=multi-user.target
and then in my code folders, I manually go and run prefect deploy to deploy everything to Prefect server..
🙌 1
please provide recommendations or feedbacks
thanks in advance
b
Hi Bharat, welcome to the community! What you've described sounds like a good setup. Just reach out if you happen to get stuck somewhere! There's also a handy-dandy hosting doc with some tips and tricks if you haven't checked it out yet.