funboost-remote-deploy

Deploys funboost consumer functions to remote Linux servers over SSH using fabric.

892|166|Updated Dec 25, 2021
One-click install
npx skills add https://github.com/ydf0509/funboost --skill funboost-remote-deploy-ydf0509
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: funboost-remote-deploy
Source: https://github.com/ydf0509/funboost/tree/main/.agents/skills/funboost-remote-deploy
Command: npx skills add https://github.com/ydf0509/funboost --skill funboost-remote-deploy-ydf0509

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires funboost, fabric2, paramiko.

What problem does it solve? Manually uploading code to remote Linux servers and starting Python consumers on each machine is repetitive and error-prone. This Skill automates function-level remote deployment for funboost: it uploads your project over SFTP, kills old consumer processes, and starts the specified @boost function with multi-process consumption on the target machine. ## Core Features & Use Cases - Function-level deployment: Deploy a single @boost function (not a whole script) to a specific machine via my_task.fabric_deploy(host, port, user, password, process_num=2). - Automated upload and process management: Syncs project code over SFTP with exclusion rules and incremental upload, then kills old processes by a unique funboost mark before starting new ones. - Production persistence options: Configure pty=False so remote consumers keep running after the local deploy script exits, and use SSH private keys via pkey_file_path. - Use Case: You have two Linux servers and want task_a running with 2 processes on server 1 and task_b with 1 process on server 2, all deployed from one local Python script without logging into either machine. ## Quick Start Ask the AI to deploy your @boost decorated function to a remote Linux server by calling its fabric_deploy method with the host, port, SSH credentials, and desired process count.

Frequently Asked Questions about funboost-remote-deploy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a funboost consumer to a remote Linux server?▼

Call the fabric_deploy method on your @boost decorated function, passing host, port, SSH user, password, and process_num. The framework uploads your project over SFTP, kills old consumer processes, and starts the function remotely with multi_process_consume.

How to keep remote funboost consumers running after the deploy script exits?▼

Set invoke_runner_kwargs with pty set to False in the fabric_deploy call. With pty disabled, the remote consumer process continues running in the background after your local script finishes, which is the recommended setup for production.

Does funboost fabric_deploy support SSH private key authentication?▼

Yes, pass the pkey_file_path parameter pointing to your private key file, such as /home/me/.ssh/id_rsa. When a key is provided, the password is ignored and key-based login is used instead.

Can I use fabric_deploy on Windows servers or with Kubernetes?▼

No, fabric_deploy only supports remote Linux machines with Python and funboost preinstalled. If you already have Kubernetes or a CI/CD pipeline like Aliyun CodePipeline, prefer those tools over fabric_deploy.

Why is fabric_deploy not importable directly from funboost?▼

The funboost __init__.py does not export fabric_deploy because fabric2 is not fully adapted to Python 3.12 and later. Use the .fabric_deploy() method on your boosted function or import from funboost.core.fabric_deploy_helper instead.