title | description | category | |
---|---|---|---|
Going Live |
Best practices for preparing your site launch. |
|
Congratulations, you're almost ready to launch your site on Pantheon! There are a couple things to do to get ready, but we'll help you with every step.
We recommend that you prepare the Live environment at least 24 hours before your launch. If you rush a launch, the probability of avoidable mistakes and problems will increase.
Making sure that your site code is current reduces the potential for later issues and makes your site easier to maintain. Update the Drupal or WordPress core, extensions (Drupal modules or WordPress plugins), and themes to the latest recommended release to ensure stability and security.
While it's good for visitors and DNS to resolve both www and the domain itself, it's best practice to choose one or the other and redirect from www to non-www (or vice versa, your call). To do this, just update your settings.php configuration to redirect site traffic to your preferred domain. If you don't, there will be an SEO penalty due to duplicate content, among other problems.
Complete | Action | Help |
---|---|---|
[ ] | Update core | Core updates |
[ ] | Update contrib modules | Latest stable release (avoid dev and alpha) |
[ ] | Update settings to redirect to a common domain | Redirect incoming requests |
When all code changes are complete, pull the code changes into the Live environment.
Complete | Action | Help |
---|---|---|
[ ] | Pull code to Live | Using the Pantheon Workflow |
Start by disabling development modules, as they hurt performance by increasing overhead and can introduce security problems by disclosing structural and debugging information about your site to visitors.
Consider enabling New Relic monitoring to non-intrusively track the performance of your site; this is one of the first places Pantheon will look when there are performance concerns.
Take a look at your performance settings, including enabling anonymous page caching, enabling aggregated stylesheets, and so forth. This will make a drastic difference in how fast your site can deliver content.
Check to see if Varnish is properly caching your site using Pantheon's Varnish Check tool at varnishcheck.getpantheon.com.
Finally, you should load test your Live environment to make sure everything is optimally configured.
Complete | Action | Help |
---|---|---|
[ ] | Disable development modules & plugins | Ex: devel, examples, generate_errors, views_ui |
[ ] | Enable New Relic | Using New Relic on Pantheon |
[ ] | Optimize Performance Settings | Performance and caching settings |
[ ] | Ensure Varnish caching works | Varnish caching for high performance |
[ ] | Load test Live environment | Load and performance testing |
Once you're satisfied with your site configuration, you'll need to select a paid plan. Among other reasons, free sandbox sites can't have custom domains. You will need to add a credit card to either the site or the account to set up billing.
Complete | Action | Help |
---|---|---|
[ ] | Select a paid plan | Selecting a plan |
Ensure that your Live environment content is protected by scheduling daily and weekly backups. That way you've got a fallback in case you want to revert your site content.
Complete | Action | Help |
---|---|---|
[ ] | Schedule backups | Creating a backup |
Now that the site is on a paid plan, you can associate your domain with the Live environment. This tells Pantheon where to send site traffic.
Complete | Action | Help |
---|---|---|
[ ] | Add domain(s) to Live environment | Adding a domain to a site environment |
After you've added your domain to the Live environment, update your domain's DNS with the appropriate DNS record, which will depend on your site's configuration. Once you do this, traffic will be directed from your domain to Pantheon and your site will be fully launched.
Pantheon does not manage your domain name or DNS. You will need to make these changes yourself. DNS changes can take up to 48 hours to propagate across the Internet. However, most updates happen in a couple hours.
If you are an enterprise customer or using HTTPS to identify your site and encrypt traffic:
Complete | Action | Help |
---|---|---|
[ ] | Update DNS with custom load-balanced IP for SSL | Adding a SSL certificate for secure HTTPS communication |
If your site plan is Business, Professional, or Personal or using HTTP and not using an identity certificate:
Complete | Action | Help |
---|---|---|
[ ] | Update DNS with Pantheon DNS record | DNS records for directing your domain to your Pantheon site |
- Dev has lower TTL on Varnish caching and shows errors to site users.
- Test has the same caching configuration as Live and does not show errors to users, but only one application server.
- Live has optimal caching and does not show errors to users, and (depending on the plan) can have multiple application servers for high availability and high performance.
To learn more, see using the Pantheon workflow.
Pantheon serves a default robots.txt that disallows crawlers for any *.pantheon.io domain. Once a domain has been associated with a live site environment and the site is accessed using that domain, the robots.txt from your site code will be served normally and the site will be crawled.
If you attempt to access your live environment with a pantheon.io domain, even if you have a domain associated with the environment, the default robots.txt will be served.
Pantheon does not allow crawlers on Dev, Test, or any branch environment. Adding a domain to an environment other than Live will not permit crawlers to that environment.