CloudDeploy
CloudDeploy[expr]
deploys expr to a new anonymous cloud object.
CloudDeploy[expr,"uri"]
deploys expr to a cloud object at a given URI.
CloudDeploy[expr,CloudObject["uri"]]
deploys expr to a given cloud object.
Details and Options
- CloudDeploy performs different actions depending on the form of expr:
-
APIFunction[…] create a web API to access using GET or POST requests FormFunction[…] create a form to access from the web FormPage[…] create a page containing a form and result to access from the web AskFunction[…] deploy a program that asks questions during execution NotebookObject[…] output as a notebook in the cloud ExportForm[expr,"fmt"] output expr in the specified format Delayed[obj] set obj to be reevaluated whenever it is accessed on the web Dynamic[obj] set obj to be dynamically autorefreshed on the web ScheduledTask[expr,…] evaluate expr on a schedule ContinuousTask[expr] continuously reevaluate expr AutoRefreshed[obj,…] set obj to be reevaluated on a schedule HTTPResponse[…] give a specific HTTP response on the web HTTPRedirect[…] redirect to another location on the web ExternalBundle[…] deploy a directory or hierarchy of objects EmbedCode[…] output as a web version of embed code GrammarRules[…] deploy as a grammar to be applied URLDispatcher[…] define a dispatcher of relative URLs MailReceiverFunction[…] deploy a mail receiver ChannelReceiverFunction[…] deploy a channel receiver - For other forms of expr, CloudDeploy[expr,…] gives a cloud notebook or CDF webpage, equivalent to CloudDeploy[ExportForm[expr,"HTMLCloudCDF"],…].
- CloudDeploy[expr,URL["loc"]] is equivalent to CloudDeploy[expr,"loc"].
- CloudDeploy[Dynamic[obj,UpdateInterval->dt]] specifies that the web output should be refreshed every dt seconds.
- CloudDeploy allows the following options:
-
CloudBase Automatic what cloud to deploy to IconRules Automatic icons to use for the deployed object MetaInformation {} meta-information for the deployed object Permissions Automatic permissions for the deployed object SourceLink Automatic object to be linked as the source - CloudDeploy[expr,…] automatically deploys all definitions needed to evaluate expr, much like CloudSave.
- With the default setting SourceLink->Automatic, CloudDeploy sets the source link for the deployed cloud object to be the cloud object corresponding to the current notebook. If no such cloud object exists, it sets the source link to None.
- To copy an existing local file to the cloud, use CopyFile.
Examples
open allclose allBasic Examples (2)
Deploy an APIFunction to a new unnamed object in the Wolfram Cloud:
The resulting API viewed in a web browser:
Deploy a FormFunction to a named object:
Scope (6)
Options (1)
Properties & Relations (2)
Possible Issues (1)
Neat Examples (1)
See Also
EmbedCode ExportForm CloudExport CloudPut CloudSave CopyFile CloudObject ServiceExecute SendMessage CloudEvaluate MailReceiverFunction ChannelReceiverFunction GenerateHTTPResponse AutoCopy
Related Guides
- Web Operations
- Cloud Functions & Deployment
- Notebook Document Generation
- Creating Form Interfaces & Apps
- Background & Scheduled Tasks
- Sharing & Embedding Content
- Cloud Permissions Control
- Programmable Linguistic Interface
- Creating Instant APIs
- Setting Up User Interactions
- Wolfram Data Repository
- Text Search
- Persistent Storage
- External Language Interfaces
- HTTP Requests & Responses
- External Operations
Related Links
Introduced in 2014
(10.0)
| Updated in 2016 (11.0)