Before you deploy to the Production environment, download the Launch checklist, and use it with these instructions to confirm that you have completed all required configuration and testing. See an overview of the complete deployment process for Starter and Pro at Deploy your store.
Completely test in Production
See Test deployment for testing all aspects of your sites, stores, and environments. These tests include verifying Fastly, User Acceptance Tests (UAT), and performance testing.
You need to complete configurations for your DNS including:
- Set all necessary redirects, especially if you are migrating from an existing site
- Set the zone root resource record to the hostname address
- Lower the value for the Time-to-Live (TTL) setting to refresh DNS information so customers are directed to the correct Production store more quickly
We recommend a significantly lower TTL value when switching the DNS record. This value tells the DNS how long to cache the DNS record. When shortened, it refreshes the DNS faster. For example, changing this value from 3 days to 10 minutes. Be advised, this adds load to the web server.
After checking with your registrar about where to change your DNS settings, add a CNAME record for your website that points to the Fastly service:
prod.magentocloud.map.fastly.net. If you use multiple hostnames for your site, you must add a CNAME record for each one.
This does not work for an apex domain (also referred to as a naked domain). You must use a DNS provider that supports forwarding DNS queries to use an apex domain.
The following list contains examples of DNS providers for informational purposes. Use your preferred DNS provider.
- CNAME with ALIAS record from Dyn
- ANAME record on DNS Made Easy
- ANAME at easyDNS
- ACNAME at CloudFlare
- ALIAS at PointDNS
Many other DNS providers also offer workarounds to accomplish this goal. The most common is to add a CNAME record for the
www host on the domain and then use the DNS provider’s redirect service to redirect the apex over to the
www version of the domain. Consult your DNS provider for more information.
Another option for apex domain is to add A records, which maps a domain name to the Fastly IP addresses:
TLS and Fastly
If you use TLS with Fastly enabled in your environment, you must provide your DNS provider with a TXT record from Fastly. We provide a Domain Validated SSL certificate with Subject Alternative Name enabled, issued by GlobalSign. When entering your Support ticket for DNS information and going live, let us know you are using TLS, provide your domain names and request the TXT record. You can then send this record to your DNS provider. The domain validation process is executed by Fastly.
For details on this TXT record, see Fastly DNS TXT record validation.
Verify Production configurations
Make a final pass for any Production configurations in the store(s). If you need to make changes to configurations, you can modify in Production. If settings are read-only, you may need to SSH and CLI commands to modify, or make configuration changes in your local and deploy across.
The following are recommended changes and checks:
- Completed Outgoing email testing
- Secure configuration for Admin credentials and Base Admin URL
- Optimize all images for the web
Verify Fastly caching
- Test and verify that Fastly caching is working correctly on the Production site. For detailed tests and checks, see Fastly testing.
- Ensure that the latest version of the Fastly CDN Module for Magento 2 is installed in your Production environment
- Ensure that the most current version of the Fastly VCL code has been uploaded
We recommend that you review the Magento Performance Toolkit options as part of your pre-launch readiness process.
You can also test using the following 3rd party options:
- Siege: Traffic shaping and testing software to push your store to the limit. Hit your site with a configurable number of simulated clients. Siege supports basic authentication, cookies, HTTP, HTTPS and FTP protocols.
- Jmeter: Excellent load testing to help gauge performance for spiked traffic, like for flash sales. Create custom tests to run against your site.
- New Relic (provided): Helps locate processes and areas of the site causing slow performance with tracked time spent per action like transmitting data, queries, Redis, and so on.
- WebPageTest and Pingdom: Real-time analysis of your site pages load time with different origin locations. Pingdom may cost a fee. WebPageTest is a free tool.
- Set up your Magento Security Scan
- Secure configuration for Admin user
- Secure configuration for Base Admin URL
- Remove any users no longer on the Magento Commerce Cloud project
- Configure two-factor authentication
You can use New Relic services for performance monitoring on Pro and Starter environments. On Pro plan accounts, we provide Adobe-generated alert policies to monitor application and infrastructure performance using New Relic APM and Infrastructure agents. For details on using these services, see New Relic.