{"id":58569,"date":"2023-09-29T16:32:31","date_gmt":"2023-09-29T11:02:31","guid":{"rendered":"https:\/\/www.tothenew.com\/blog\/?p=58569"},"modified":"2023-09-29T16:32:31","modified_gmt":"2023-09-29T11:02:31","slug":"set-up-drupal-on-pantheon-and-setting-up-pantheon-locally","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/set-up-drupal-on-pantheon-and-setting-up-pantheon-locally\/","title":{"rendered":"Set up Drupal on Pantheon and setting up Pantheon locally"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p><span style=\"font-weight: 400;\">Pantheon is a popular hosting provider and web development platform that specializes in <strong>hosting websites<\/strong> and applications built on various content management systems (CMS) including Drupal.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Setting up a Drupal website on Pantheon:-<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">\u25cf Navigate to the website <strong>\u201c<\/strong><\/span><strong><a href=\"https:\/\/pantheon.io\/\">https:\/\/pantheon.io\/<\/a><\/strong><span style=\"font-weight: 400;\"><strong>\u201d<\/strong>,sign-up with your email address, and fill out the registration form if you are a first-time user. Once logged in, you can view your personal workspace.<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-58557\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-00-30.png\" alt=\"\" width=\"673\" height=\"359\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-00-30.png 1254w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-00-30-300x160.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-00-30-1024x546.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-00-30-768x410.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-00-30-624x333.png 624w\" sizes=\"(max-width: 673px) 100vw, 673px\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">\u25cf Click on \u201cCreate New Site\u201d. Select the kind of site as per your requirement. Pantheon provides development for various CMSs such as WordPress and Drupal, and it also gives an easy way to front-end development.<br \/>\n<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-58560\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-18-14-42-40.png\" alt=\"\" width=\"683\" height=\"344\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-18-14-42-40.png 1258w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-18-14-42-40-300x151.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-18-14-42-40-1024x516.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-18-14-42-40-768x387.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-18-14-42-40-624x314.png 624w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u25cf For this blog, we have opted for \u201cDrupal\u201d. After clicking on Drupal, select the required Drupal version and fill in the required information, such as the name of your site. The Pantheon development site URL is automatically generated.<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-58567\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-08-27.png\" alt=\"\" width=\"697\" height=\"395\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-08-27.png 1155w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-08-27-300x170.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-08-27-1024x581.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-08-27-768x436.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-08-27-624x354.png 624w\" sizes=\"(max-width: 697px) 100vw, 697px\" \/><br \/>\n<\/span><\/p>\n<p><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u25cf After successfully generating the site, you will be redirected to a page as shown below. As seen in the screenshot below, this page contains all the code, files, and information about the database. Click on \u201cVisit development site\u201d to view your site.<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-58562\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-14-42-1.png\" alt=\"\" width=\"690\" height=\"392\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-14-42-1.png 1174w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-14-42-1-300x170.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-14-42-1-1024x581.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-14-42-1-768x436.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-14-42-1-624x354.png 624w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\u25cf On clicking \u201cvisit development site\u201d, you will be redirected to the Drupal installation page. Complete the required steps as you have been doing it locally, and you will have your Drupal website ready in seconds.<img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-58564\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-16-56-1.png\" alt=\"\" width=\"685\" height=\"410\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-16-56-1.png 1174w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-16-56-1-300x179.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-16-56-1-1024x612.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-16-56-1-768x459.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-16-56-1-624x373.png 624w\" sizes=\"(max-width: 685px) 100vw, 685px\" \/><\/span><\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-58565\" src=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-18-35.png\" alt=\"\" width=\"693\" height=\"389\" srcset=\"\/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-18-35.png 1261w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-18-35-300x168.png 300w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-18-35-1024x575.png 1024w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-18-35-768x431.png 768w, \/blog\/wp-ttn-blog\/uploads\/2023\/09\/Screenshot-from-2023-09-13-11-18-35-624x350.png 624w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><b>\u00a0 \u00a0 \u00a0 <\/b><\/p>\n<p><b>\u00a0Setup the local environment of Pantheon with the help of Lando:-<\/b><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0 \u00a0 \u00a0 \u00a0Follow the steps below to set p\\pantheon environment locally using <strong>Lando<\/strong>:-<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\">Create an empty folder, open it in the terminal, and run the command \u201c<strong>lando init<\/strong>\u201d.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">On running the above command, you will encounter certain questions such as \u201cFrom where should we get your app&#8217;s codebase?\u201d, \u201cEnter a Pantheon machine token\u201d, and \u201cWhich site?\u201d.<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">When entering the Pantheon machine token, make sure you have one. If you don\u2019t, follow the instructions stated\u00a0 \u00a0 \u00a0below to get one:-<\/span><\/p>\n<ul>\n<li><span style=\"font-weight: 400;\">Login to your Pantheon account, visit your profile, and click on manage tokens (<strong>\/personal-settings\/machine-tokens<\/strong>).<\/span><\/li>\n<li><span style=\"font-weight: 400;\">To generate a new token, click on \u201cadd machine token.\u201dEnter the desired name of the token, click on save, and you will have the token generated.\u00a0 Note:- while running <strong>lando init<\/strong>, <\/span><span style=\"font-weight: 400;\">\u00a0\u201cWhich site\u201d will have all the sites listed that you have created in your Pantheon account for which you have entered the token above. Choose a site as per your requirement, and for \u201c<strong>From where should we get your app&#8217;s codebase?<\/strong>\u201d, select Pantheon.<\/span><\/li>\n<\/ul>\n<p>3. <span style=\"font-weight: 400;\">In the next step, run <strong>Lando pull.<\/strong><\/span><\/p>\n<p>4. <span style=\"font-weight: 400;\">Finally, run <strong>lando start,<\/strong> and you will have your website ready.<\/span><\/p>\n<div class=\"ap-custom-wrapper\"><\/div><!--ap-custom-wrapper-->","protected":false},"excerpt":{"rendered":"<p>Introduction Pantheon is a popular hosting provider and web development platform that specializes in hosting websites and applications built on various content management systems (CMS) including Drupal. Setting up a Drupal website on Pantheon:- \u25cf Navigate to the website \u201chttps:\/\/pantheon.io\/\u201d,sign-up with your email address, and fill out the registration form if you are a first-time [&hellip;]<\/p>\n","protected":false},"author":1533,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":72},"categories":[3602],"tags":[5440],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/58569"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1533"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=58569"}],"version-history":[{"count":2,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/58569\/revisions"}],"predecessor-version":[{"id":58881,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/58569\/revisions\/58881"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=58569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=58569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=58569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}