Skip to content

Commit 7915f5c

Browse files
add deploy to fabric section
1 parent 01ef4fa commit 7915f5c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

learn/getting-started/create-your-first-application.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,32 @@ Search queries return a list of records that match the specified conditions, in
334334

335335
Fantastic work! You've successfully created your first Harper application. There is so much more that the Harper platform has to offer. Continue on to more guide content to learn more about building with Harper.
336336

337+
## Bonus: Deploy your Application to Fabric
338+
339+
If you have been developing your Harper application locally, this section will walk you through deploying it to Fabric.
340+
341+
Before continuing, if you haven't already set up a Fabric cluster, go back to the previous article and complete the [Getting started with Fabric](./install-and-connect-harper.mdx#getting-started-with-fabric) step and make sure to keep track of the cluster URL, as well as the admin username and password.
342+
343+
Harper supports both **pull** and **push** based deployment workflows.
344+
345+
Pull-based deployments is generally powered by a Git repository where Harper will _pull_ your application from the repository.
346+
347+
Push-based deployments is powered by the Harper CLI and is where your the user will _push_ your application to the Harper instance.
348+
349+
For a true production application, Harper recommends using pull-based deployments so that you can deploy tagged versions of your application repository. But for development and experimentation, push-based is perfectly fine. Later guides will explore pull-based deployment workflows in more detail.
350+
351+
To get started with push-based deployments, open a command line and set the current directory to the application directory. Run the `harper deploy` command using the Fabric clusters URL, username, and password:
352+
353+
```bash
354+
harper deploy \
355+
target=<URL> \
356+
username=<username> \
357+
password=<password> \
358+
project=first-harper-app \
359+
restart=true \
360+
replicated=true
361+
```
362+
337363
## Additional Resources
338364

339365
- [Table Schema](../../docs/developers/applications/defining-schemas) reference

0 commit comments

Comments
 (0)