You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: guides/v2.0/cloud/access-acct/fastly.md
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ version: 2.0
10
10
github_link: cloud/access-acct/fastly.md
11
11
---
12
12
13
-
[Fastly]({{ page.baseurl}}cloud/basic-information/cloud-fastly.html) is required for {{site.data.var.<ece>}}, and is used in Staging and Production environments. It works with Varnish to provide fast caching capabilities and a {% glossarytooltip f83f1fa7-7a64-467b-b629-c2d0c25d2e7f %}Content Delivery Network{% endglossarytooltip %} (CDN) for static assets. Fastly is not available in Integration environments.
13
+
[Fastly]({{ page.baseurl}}cloud/basic-information/cloud-fastly.html) is required for {{site.data.var.ece}}, and is used in Staging and Production environments. It works with Varnish to provide fast caching capabilities and a {% glossarytooltip f83f1fa7-7a64-467b-b629-c2d0c25d2e7f %}Content Delivery Network{% endglossarytooltip %} (CDN) for static assets. Fastly is not available in Integration environments.
14
14
15
15
This information gets you started with installing and configuring Fastly. We provide additional information for backends and Origin shields, and error/maintenance page, and VCL snippets.
16
16
@@ -43,7 +43,7 @@ To create a branch:
43
43
{% include cloud/cli-get-started.md %}
44
44
45
45
## Install Fastly in an Integration branch and deploy {#cloud-fastly-setup}
46
-
You should install the Fastly module on your local, pushing the code to Integration and deploying across to your Staging and Production environments. For {{site.data.var.<ece>}} 2.2, install Fastly module 1.2.27 or later for all updated settings and full VCL snippet uploading support.
46
+
You should install the Fastly module on your local, pushing the code to Integration and deploying across to your Staging and Production environments. For {{site.data.var.ece}} 2.2, install Fastly module 1.2.27 or later for all updated settings and full VCL snippet uploading support.
Don't configure the module in your local before building and deploying. You'll configure the module in those environments.
@@ -207,6 +207,18 @@ The Fastly module includes GeoIP handling to automatically redirect visitors or
207
207
208
208
Fastly also provides a series of [geolocation-related VCL features](https://docs.fastly.com/guides/vcl/geolocation-related-vcl-features){:target="_blank"} for customized geolocation coding.
209
209
210
+
## Configure DNS for Fastly {#fastly-dns}
211
+
These steps you complete when going live.
212
+
213
+
We provide a Domain Validated SSL certificate with Subject Alternative Name enabled, issued by GLobalSign. The domain validation process is executed by Fastly. When you are ready to go, you will need to provide your domain names in a Support ticket to us. We will then provide a DNS TXT record to add to your apex domain to confirm ownership.
214
+
215
+
For details, see [Go live checklist]({{ page.baseurl}}cloud/live/go-live-checklist.html).
216
+
217
+
### TLS and Fastly {#fastly-tls}
218
+
If you use TLS with Fastly enabled in your environment, you will also need a TXT record Fastly provides for your DNS provider. When entering your Support ticket for DNS information and going live, let us know you are using a TLS and request the TXT record. We can provide Fastly's TXT record file for your account. You can then send this record to your DNS provider.
219
+
220
+
For details on this TXT record, see Fastly's [DNS TXT record validation](https://docs.fastly.com/guides/securing-communications/domain-validation-for-tls-certificates#dns-text-record-verification){:target="_blank"}.
All of your code is contained in the {{site.data.var.<ece>}} Starter project. The _project_ is your Magento store code, extensions, and integrations in a Master Git branch. Each project supports up to four active *environments* including `master` with an associated active Git branch in PAAS (Platform as a Service) containers. These containers are deployed inside highly restricted containers on a grid of servers.
13
+
All of your code is contained in the {{site.data.var.ece}} Starter project. The _project_ is your Magento store code, extensions, and integrations in a Master Git branch. Each project supports up to 4 total environments including three active Integration *environments* and a Production environment using the `master` Git branch.
14
14
15
-
These environments are read-only, accepting deployed code changes from Git branches pushed from your local workspace.
15
+
All environments are in PAAS (Platform as a Service) containers. These containers are deployed inside highly restricted containers on a grid of servers. These environments are read-only, accepting deployed code changes from Git branches pushed from your local workspace.
16
16
17
-
These four environments include Production, Staging, and two remaining. Consider each of the remaining environments for development to develop and test different branches simultaneously. You can use any development and branching methodology you like.
17
+
You can use any development and branching methodology you like. We strongly recommend creating a Staging environment and branch as one of the Integration environments.
18
18
19
-
## How the environments work {#how-work}
20
-
You have up to four full, active environments that generate in containers for your project. When we first provision your project, we create a `master` Git branch with a full environment. You automatically get a `master` branch and environment. This is your live site.
21
-
22
-
You have up to three active Git branches you can create from `master`. Each Git branch has an associated environment with a web server, database, and configured services. For these three remaining active environments, we recommend creating a branch from `master` called `staging`. Create your remaining two active Git branches from `staging` for development.
23
-
24
-
When you deactivate (or delete) a Git branch, you open a slot for an active Git branch. When activated, a new environment container generates for the code.
25
-
26
-

27
-
28
-
To branch and develop your Magento store:
29
-
30
-
* Set up your local environment
31
-
* Clone the `master` branch from the Project to your local
32
-
* Branch and develop in a new Git branch on your local workspace
33
-
* Push code to Git that builds and deploys to an environment for testing
34
-
35
-
Additional sections in this guide provide instructions and walk-throughs for setting up your [local workspace]({{page.baseurl}}cloud/before/before-workspace.html), working with Git branches, and [deploying code]({{page.baseurl}}cloud/live/stage-prod-live.html).
36
-
37
-
All code in these environments is read-only, requiring deploys of Git repositories. To make changes, install extensions, and make significant changes, you need to make them on your local and push code to the remote Git branch. The changes are pushed to those environments and finally Production in the `master` branch.
The following architecture information uses an architecture including Production, Staging, and Integration environments.
21
+
</div>
38
22
39
23
## Production with a master branch {#cloud-arch-int}
40
24
The Production environment is your live store(s) and site(s). The environment includes your `master` Git branch, a web server, database, and configured services to fully test your site.
@@ -46,30 +30,39 @@ We walk you through [deploying to Production]({{page.baseurl}}cloud/live/stage-p
46
30
We highly recommend fully testing in your Staging environment and branch prior to pushing to Production.
47
31
48
32
## Staging branch and environment {#cloud-arch-stage}
49
-
We recommend creating a branch called `staging` from `master`. Use this Staging environment and Git branch as your pre-production environment to test code, modules and extensions, payment gateways, shipping, product data, and much more. This environment includes all services used in Production and `master` including Fastly, New Relic, Blackfire, and search.
33
+
We recommend creating a branch called `staging` from `master`. Use this Staging environment and Git branch as your pre-production environment to test code, modules and extensions, payment gateways, shipping, product data, and much more. This environment will receive all services to match Production including Fastly, New Relic, Blackfire, and search.
50
34
51
35
Additional sections in this guide provide instructions and walk-throughs for final code deployments and testing production level interactions in a safe Staging environment. For best performance and feature testing, replicate your Production database into Staging.
52
36
53
37
We walk you through [deploying to Staging]({{page.baseurl}}cloud/live/stage-prod-live.html) and [testing your store(s)]({{page.baseurl}}cloud/live/stage-prod-test.html) requirements and processes.
54
38
55
39
We highly recommend fully testing every merchant and customer interaction in Staging prior to pushing to Production.
56
40
57
-
## Development branches and environments {#dev}
58
-
From `staging`, create branches for your development code. Add extensions, work in agile sprints, resolve issues all through these branches. When completed and tested, you can merge up to `staging`, test in Staging, then merge to `master` to go live.
41
+
## Integration environment {#cloud-arch-int}
42
+
Developers use the Integration environment to develop, deploy, and test the Magento application, custom code, extensions, and services. If you created a Staging environment, you have up to two active environments on a grid for two active Git branches. Each Integration environment matches the name of the branch and includes a web server, database, and configured services to fully test your site.
43
+
44
+
You can have an unlimited number of inactive Git branches to store code. To access, view, and test inactive branches, you must activate them. This environment does not support all services. For example, Fastly is not accessible in Integration.
59
45
60
-
We do not recommend branching these environments directly from `master` if you have a `staging` branch. Having a Staging branch and environment allows you to fully test and verify every code change before pushing to Production.
46
+
The process for developing in Integration requires the following process:
47
+
48
+
* Branch and develop off of `staging`
49
+
* Develop all work on your local workspace in these branches
50
+
* Push code to Git to build and deploy on an Integration environment for testing
51
+
* As work is completed, merge to `staging`
52
+
53
+
Additional sections in this guide provide instructions and walk-throughs for setting up your [local workspace]({{page.baseurl}}cloud/before/before-workspace.html), working with Git branches, and [deploying code]({{page.baseurl}}cloud/live/stage-prod-live.html).
61
54
62
55
## Production and Staging technology stack {#technology}
63
56
The Production and Staging environments include the following technologies. You can modify and configure these technologies through the [.magento.app.yaml file]({{page.baseurl}}cloud/project/project-conf-files_magento-app.html).
64
57
65
58
* Fastly for http caching and CDN
66
59
* Nginx web server speaking to PHP-FPM, one instance with multiple workers
67
60
* Redis server
68
-
* Elasticsearch for searching for {{site.data.var.<ece>}} 2.1 and later
69
-
* Solr search is supported for {{site.data.var.<ece>}} 2.0
61
+
* Elasticsearch for searching for {{site.data.var.ece}} 2.1 and later
62
+
* Solr search is supported for {{site.data.var.ece}} 2.0
70
63
71
64
### Services {#cloud-arch-services}
72
-
{{site.data.var.<ece>}} currently supports the following services: PHP, MySQL (MariaDB), Solr (Magento 2.0.x), Elasticsearch (Magento 2.1.x and later), Redis, and RabbitMQ.
65
+
{{site.data.var.ece}} currently supports the following services: PHP, MySQL (MariaDB), Solr (Magento 2.0.x), Elasticsearch (Magento 2.1.x and later), Redis, and RabbitMQ.
73
66
74
67
Each service runs in its own secure container. containers are managed together in the project. Some services are built-in, such as the following:
75
68
@@ -81,7 +74,7 @@ Each service runs in its own secure container. containers are managed together i
81
74
You can even have multiple applications running in the same project. Building a microservice oriented architecture with Magento Commerce is as easy as managing a monolithic application.
82
75
83
76
### Software versions {#cloud-arch-software}
84
-
{{site.data.var.<ece>}} uses:
77
+
{{site.data.var.ece}} uses:
85
78
86
79
* Operating system: Debian GNU/Linux 8 (jessie)
87
80
* Web server: {% glossarytooltip b14ef3d8-51fd-48fe-94df-ed069afb2cdc %}nginx{% endglossarytooltip %} 1.8
@@ -105,15 +98,13 @@ To branch and develop your Magento store:
105
98
106
99
* Set up your local environment
107
100
* Clone the `master` branch from the Project to your local
108
-
* Branch and develop in a new Git branch on your local workspace
101
+
* Create a `staging` branch from `master`
102
+
* Create branches for development from `staging`
109
103
* Push code to Git that builds and deploys to an environment for testing
110
104
111
-
Additional sections in this guide provide instructions and walk-throughs for setting up your [local workspace]({{page.baseurl}}cloud/before/before-workspace.html), working with Git branches, and [deploying code]({{page.baseurl}}cloud/live/stage-prod-live.html).
112
-
113
-
We walk you through the entire process from [deployment]({{page.baseurl}}cloud/live/stage-prod-live.html) to [going live]({{page.baseurl}}cloud/live/live.html) requirements and processes.
114
-
105
+
Additional sections in this guide provide instructions and walk-throughs for setting up your [local workspace]({{page.baseurl}}cloud/before/before-workspace.html), working with Git branches, [deploying code]({{page.baseurl}}cloud/live/stage-prod-live.html), and [going live]({{page.baseurl}}cloud/live/live.html) .
115
106
116
107
#### Related topics
117
108
*[Starter Develop and Deploy Workflow]({{page.baseurl}}cloud/basic-information/starter-develop-deploy-workflow.html)
0 commit comments