-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update deployment best practices for DSR (#1621)
* feat: update the pipeline sample when deploy DSR template * feat: update new best practice to deploy dsr into AWS * fix lint * fix lint * Update suggestion Co-authored-by: Micha Hobert <[email protected]> * Update suggestion Co-authored-by: Micha Hobert <[email protected]> * Update suggestion Co-authored-by: Micha Hobert <[email protected]> * Update suggestion Co-authored-by: Micha Hobert <[email protected]> * Update suggestion Co-authored-by: Micha Hobert <[email protected]> --------- Co-authored-by: Micha Hobert <[email protected]>
- Loading branch information
1 parent
5d5350f
commit 754592e
Showing
2 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
products/digital-sales-rooms/best-practices/app-deployment/aws.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
nav: | ||
title: AWS | ||
position: 10 | ||
|
||
--- | ||
|
||
# Deploy with AWS Amplify | ||
|
||
In this chapter, you will learn how to deploy the frontend source code to [AWS Amplify](https://aws.amazon.com/amplify/). | ||
|
||
## Prerequisites | ||
|
||
* Register an AWS account. | ||
* Clone the frontend source code and push it to your GitHub repository. | ||
* Download the plugin zip. After extracting it, you will find it inside `/templates/dsr-frontends`. | ||
* Push source code to your Git repository. | ||
|
||
## Deploy | ||
|
||
* Login to the AWS Amplify Hosting Console. | ||
* Create a new app in AWS Amplify. | ||
* Select and authorize access to your Git repository provider and select the main branch (it will auto deploy when there are some changes in the main branch). | ||
* Choose a name for your app and make sure build settings are auto-detected. | ||
* Set Environment variables under the Advanced Settings section. | ||
* Add `SHOPWARE_STORE_API`, `SHOPWARE_ADMIN_API`, `SHOPWARE_STORE_API_ACCESS_TOKEN`, `SHOPWARE_STOREFRONT_URL`, `ORIGIN` variables with appropriate values. | ||
* Confirm configuration and click on "Save and Deploy". | ||
|
||
## Custom domain | ||
|
||
After deploying your code to AWS Amplify, you may wish to point custom domains (or subdomains) to your site. AWS has an [instruction](https://docs.aws.amazon.com/amplify/latest/userguide/custom-domains.html). | ||
|
||
## Configure sales channel domain | ||
|
||
Your website is ready, and you should have a frontend app domain. Please use the current domain to configure [sales channel domain](../../configuration/domain-config.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters