Skip to content

Commit

Permalink
final touch
Browse files Browse the repository at this point in the history
  • Loading branch information
sigdestad committed Jan 22, 2024
1 parent aed7a79 commit b3781df
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/deploy.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ The API will be served from a real domain when you go live. Also, important to n

TIP: The Chrome extension https://chrome.google.com/webstore/detail/altair-graphql-client/flnheeellpciglgpaodhkhmapeljopja[Altair^] lets you browse any GraphQL API, simply by pointing it to the API URL.

== Deploying to Production
== Deploy to server

To deploy your application to production, you'll need Enonic XP running on a server. Here we'll use Enonic's free tier.
To deploy your application to production, you'll need Enonic XP running on a server. Here we'll use Enonic's free tier, follow these steps:

=== 1. Sign up

[TIP]
====
Expand All @@ -33,6 +35,9 @@ If you are looking for other hosting options, Enonic XP is open source, and http
+
This will spin up an instance of Enonic XP, similar to your local sandbox but this time on a real server in the Cloud.
+

=== 2. Upload your app

. Once the solution has started, *authenticate the CLI* by running this command from your project folder:
+
enonic cloud login
Expand All @@ -46,8 +51,11 @@ IMPORTANT: You must execute the command from your app folder.
TIP: Alternatively upload the app from the Console directly: `Solutions -> <Your solution> -> Applications -> Install`.
+
The app file is located in your project folder i.e. `build/libs/myapp.jar`.
+
. *Expose your API* by creating an ingress in the Enonic Cloud console: `Solutions -> <Your solution> -> Ingresses -> Create`.


=== 3. Explose the API

. Expose your API by *creating an ingress* in the Enonic Cloud console: `Solutions -> <Your solution> -> Ingresses -> Create`.
+
Give it a suitable name i.e. `Intro API`, and use the following values:
+
Expand Down

0 comments on commit b3781df

Please sign in to comment.