WebDeployToolkit
- Initialize new React projects
- Build React applications
- Deploy HTML content to local server
- Serve static websites locally
init
- timeout (Optional[float]): Command timeout in seconds. (default: :obj:
None
) - add_branding_tag (bool): Whether to add brand tag to deployed pages. (default: :obj:
True
) - logo_path (str): Path to custom logo file (SVG, PNG, JPG, ICO). (default: :obj:
../camel/misc/favicon.png
) - tag_text (str): Text to display in the tag. (default: :obj:
Created by CAMEL
) - tag_url (str): URL to open when tag is clicked. (default: :obj:
https://github.com/camel-ai/camel
) - remote_server_ip (Optional[str]): Remote server IP for deployment. (default: :obj:
None
- use local deployment) - remote_server_port (int): Remote server port. (default: :obj:
8080
)
_validate_ip_or_domain
_validate_port
_sanitize_text
_validate_url
_validate_subdirectory
_is_port_available
_load_server_registry
_save_server_registry
_is_process_running
_build_custom_url
- domain (str): Custom domain
- subdirectory (Optional[str]): Subdirectory path
_load_logo_as_data_uri
- logo_path (str): Path to the logo file
_get_default_logo
deploy_html_content
- html_content (Optional[str]): HTML content to deploy. Either this or html_file_path must be provided.
- html_file_path (Optional[str]): Path to HTML file to deploy. Either this or html_content must be provided.
- file_name (str): Name for the HTML file when using html_content. (default: :obj:
index.html
) - port (int): Port to serve on. (default: :obj:
8000
) (default: 8000) - domain (Optional[str]): Custom domain to access the content. (e.g., :obj:
example.com
) - subdirectory (Optional[str]): Subdirectory path for multi-user deployment. (e.g., :obj:
user123
)
_deploy_to_remote_server
- html_content (str): HTML content to deploy
- subdirectory (Optional[str]): Subdirectory path for deployment
- domain (Optional[str]): Custom domain
_deploy_to_local_server
- html_content (str): HTML content to deploy
- file_name (str): Name for the HTML file
- port (int): Port to serve on (default: 8000) (default: 8000)
- domain (Optional[str]): Custom domain
- subdirectory (Optional[str]): Subdirectory path
_serve_static_files
- directory (str): Directory to serve files from
- port (int): Port to serve on (default: 8000) (default: 8000)
deploy_folder
- folder_path (str): Path to the folder to deploy.
- port (int): Port to serve on. (default: :obj:
8000
) (default: 8000) - domain (Optional[str]): Custom domain to access the content. (e.g., :obj:
example.com
) - subdirectory (Optional[str]): Subdirectory path for multi-user deployment. (e.g., :obj:
user123
)
_deploy_folder_to_local_server
- folder_path (str): Path to the folder to deploy
- port (int): Port to serve on
- domain (Optional[str]): Custom domain
- subdirectory (Optional[str]): Subdirectory path
_deploy_folder_to_remote_server
- folder_path (str): Path to the folder to deploy
- subdirectory (Optional[str]): Subdirectory path for deployment
- domain (Optional[str]): Custom domain
stop_server
- port (int): Port of the server to stop.