Skip to content

Commit

Permalink
docs: remove references to http-server
Browse files Browse the repository at this point in the history
  • Loading branch information
emmenko committed Oct 6, 2020
1 parent 7a49f10 commit d0a04ec
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ labels:
assignees: ''
---

**Where would you like to deploy your custom application?**
**Where would you like to deploy your Custom Application?**
List one of the cloud providers that you would be interested to use, that are not listed in the examples.

**Additional context**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
title: Compiling a Custom Application
---

One of the necessary steps to prepare your Custom Application for a deployment is to create a [production build](/deployment/production-build). If you decide to host your Custom Application statically and do not intend to use the [provided HTTP server](/deployment/http-server), you need to compile your Custom Application.
One of the necessary steps to prepare your Custom Application for a deployment is to create a [production build](/deployment/production-build). The production build contains a `index.html.template` file that needs to be compiled into a `index.html` file to serve the Custom Application.

This section helps prepare your Custom Application for static hosting by going through the compilation step.
This section describes what compiling the Custom Application means and what are the steps to do that.

# Why compile?

When creating a [production build](/deployment/production-build), `mc-scripts build` takes your Custom Application code and generates assets that can be served statically.

One of these assets is a file named `index.html.template`. This file contains references to bundles (your code and other assets) and placeholders that needs to be replaced with values specific to your [Custom Application configuration](/development/application-config).

Therefore, compiling the application simply results in having a final `index.html` with all the correct runtime values in place.
Therefore, by compiling a Custom Application the final `index.html` file is created with all the correct runtime values in place.

Once your Custom Application is compiled, it is ready for deployment.

Expand Down Expand Up @@ -40,3 +40,9 @@ We provide some step-by-step tutorial examples for hosting a Custom Application
- [Example Deployment with Vercel](/deployment/example-deployment-vercel)
- [Example Deployment with Firebase](/deployment/example-deployment-firebase)
- [Example Deployment with AWS, S3 and CloudFront](/deployment/example-deployment-aws-s3-cloudfront)

<Info>

Want to deploy to a specific cloud provider? [Let us know](https://github.com/commercetools/merchant-center-application-kit/issues/new/choose), and we can provide you with an example.

</Info>
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,7 @@ To make it work, we need to **compile** the application first.

# Compile the application

The Merchant Center Custom Applications are available by default with a built-in [HTTP server](/deployment/http-server), which takes care of preparing the `index.html` according to the [application config](/development/application-config).

To be able to deploy the Custom Application to AWS CloudFront, the application needs to be configured and built statically.
This is possible using the [`compile-html` command](/development/available-scripts).
To be able to deploy the Custom Application to AWS CloudFront, the Custom Application needs to be [compiled](./deployment/compiling-a-custom-application).

```console
mc-scripts compile-html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,7 @@ To make it work, we need to **compile** the application first.

# Compile the application

The Merchant Center Custom Applications are available by default with a built-in [HTTP server](/deployment/http-server), which takes care of preparing the `index.html` according to the [application config](/development/application-config).

To be able to deploy the Custom Application to Firebase, the application needs to be configured and built statically.
This is possible using the [`compile-html` command](/development/available-scripts).
To be able to deploy the Custom Application to Firebase, the Custom Application needs to be [compiled](./deployment/compiling-a-custom-application).

```console
mc-scripts compile-html
Expand Down
5 changes: 1 addition & 4 deletions website/src/content/deployment/example-deployment-vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ To make it work, we need to **compile** the application first.

# Compile the application

The Merchant Center Custom Applications are available by default with a built-in [HTTP server](/deployment/http-server), which takes care of preparing the `index.html` according to the [application config](/development/application-config).

To be able to deploy the Custom Application to the Vercel platform, the application needs to be configured and built statically.
This is possible using the [`compile-html` command](/development/available-scripts).
To be able to deploy the Custom Application to the Vercel platform, the Custom Application needs to be [compiled](./deployment/compiling-a-custom-application).

```console
mc-scripts compile-html
Expand Down

0 comments on commit d0a04ec

Please sign in to comment.