Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate before running the server #498

Merged
merged 5 commits into from
Dec 12, 2024
Merged

Migrate before running the server #498

merged 5 commits into from
Dec 12, 2024

Conversation

eelcovdw
Copy link
Contributor

@eelcovdw eelcovdw commented Dec 12, 2024

Move deployment to use CLI, so we dont get all workers doing migrations and setup

TODO after merge update systemd on staging + prod to use CLI as well:

[Unit]
Description=Syftbox Server
After=network.target

[Service]
LimitNOFILE=262144
User=azureuser
WorkingDirectory=/home/azureuser
ExecStart=uv run syftbox server --port=8080 --workers=5 --ssl-key=/etc/letsencrypt/live/syftboxstage.openmined.org/privkey.pem --ssl-cert=/etc/letsencrypt/live/syftboxstage.openmined.org/fullchain.pem
Restart=always
RestartSec=5
Environment=OTEL_RESOURCE_ATTRIBUTES=service.name=syftbox-stage

[Install]
WantedBy=multi-user.target

@yashgorana yashgorana changed the title Use CLI for deployment Migrate before running the server Dec 12, 2024
@yashgorana
Copy link
Collaborator

#502 will add syftbox.service in the repo + just upload-dev and just upload-pip will copy these files before running the server

@eelcovdw eelcovdw merged commit 3fb2b64 into main Dec 12, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants