This repository has been archived by the owner on Aug 25, 2024. It is now read-only.
question: How do I install on Ubuntu? #1221
Unanswered
johnandersen777
asked this question in
Q&A
Replies: 1 comment
-
$ sudo apt-get update -qyy
$ sudo apt-get install -qyy python3 python3-pip
$ sudo update-alternatives --install /usr/local/bin/python python /usr/bin/python3 40
$ sudo python -m pip install --upgrade pip
$ sudo python -m pip install --upgrade setuptools wheel
$ sudo python -m pip install --upgrade dffml-service-http
$ dffml service http server --help
usage: dffml service http server [-h] [-mc-config MC_CONFIG] [-mc-atomic] [-key KEY] [-cert CERT] [-port PORT] [-addr ADDR] [-upload-dir UPLOAD_DIR] [-static STATIC] [-js] [-insecure] [-cors-domains CORS_DOMAINS [CORS_DOMAINS ...]] [-allow-caching] [-models MODELS] [-sources SOURCES [SOURCES ...]]
[-redirect REDIRECT [REDIRECT ...]] [-portfile PORTFILE] [-log LOG]
HTTP server providing access to DFFML APIs
optional arguments:
-h, --help show this help message and exit
-mc-config MC_CONFIG MultiComm config directory (default: None)
-mc-atomic No routes other than dataflows registered at startup (default: False)
-key KEY Path to key file (default: server.key)
-cert CERT Path to cert file (default: server.pem)
-port PORT Port to bind to (default: 8080)
-addr ADDR Address to bind to (default: 127.0.0.1)
-upload-dir UPLOAD_DIR
Directory to store uploaded files in (default: None)
-static STATIC Directory to serve static content from (default: None)
-js Serve JavaScript API file at /api.js (default: False)
-insecure Start without TLS encryption (default: False)
-cors-domains CORS_DOMAINS [CORS_DOMAINS ...]
Domains to allow CORS for (see keys in defaults dict for aiohttp_cors.setup) (default: [])
-allow-caching Allow caching of HTTP responses (default: False)
-models MODELS Models configured on start (default: [])
-sources SOURCES [SOURCES ...]
Sources configured on start (default: [])
-redirect REDIRECT [REDIRECT ...]
list of METHOD SOURCE_PATH DESTINATION_PATH pairs, number of elements must be divisible by 3 (default: [])
-portfile PORTFILE File to write bound port to when starting. Helpful when port 0 was requeseted to bind to any free port (default: None)
-log LOG Logging level (default: 20) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions