ServiceDeploy

ServiceDeploy[service, expr]

deploys expr to an anonymous service deployment.

ServiceDeploy[service, expr,location]

deploys expr to the specified location.

ServiceDeploy[service,expr,assoc]

deploys expr to the location specified by assoc

Details and Options

  • The service for ServiceDeploy can be specified by a ServiceObject returned from ServiceConnect, or directly by name and the URL for the server.
  • If a connection to service is not found, ServiceDeploy will try to establish a new connection. If multiple connections to service exist, it will use the most recent one.
  • ServiceDeploy returns a ServiceDeployment object that includes all the details on how to reach the deployment, this typically includes a URL.
  • ServiceDeploy allows the following option:
  • IncludeDefinitions Truewhether to automatically include dependencies

Examples

open allclose all

Basic Examples  (3)

Deploy a simple APIFunction to a Wolfram Application Server:

Once the application has been deployed, it can be called using URLRead:

Information can be used to see more details about the deployment:

DeleteObject can be used to delete the deployment:

Deploy a FormFunction to a named URL on Wolfram Web Engine:

Deploy a static expression while specifying details of the deployment on Wolfram Application Server:

Options  (1)

IncludeDefinitions  (1)

With IncludeDefinitions False, deployed expressions are responsible for setting up their own definitions:

The deployed API can be invoked by accessing the deployment in a web browser and appending ?x=10 to its URL:

Wolfram Research (2021), ServiceDeploy, Wolfram Language function, https://reference.wolfram.com/language/ref/ServiceDeploy.html (updated 2023).

Text

Wolfram Research (2021), ServiceDeploy, Wolfram Language function, https://reference.wolfram.com/language/ref/ServiceDeploy.html (updated 2023).

CMS

Wolfram Language. 2021. "ServiceDeploy." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2023. https://reference.wolfram.com/language/ref/ServiceDeploy.html.

APA

Wolfram Language. (2021). ServiceDeploy. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ServiceDeploy.html

BibTeX

@misc{reference.wolfram_2024_servicedeploy, author="Wolfram Research", title="{ServiceDeploy}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/ServiceDeploy.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_servicedeploy, organization={Wolfram Research}, title={ServiceDeploy}, year={2023}, url={https://reference.wolfram.com/language/ref/ServiceDeploy.html}, note=[Accessed: 22-December-2024 ]}