Set up Drupal on Pantheon and setting up Pantheon locally

29 / Sep / 2023 by Sunidhi Negi 0 comments

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:-

● Navigate to the website https://pantheon.io/,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.

 

● Click on “Create New Site”. 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.

● For this blog, we have opted for “Drupal”. 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.

● 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 “Visit development site” to view your site.

 

● On clicking “visit development site”, 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.

 

 

     

 Setup the local environment of Pantheon with the help of Lando:-

       Follow the steps below to set p\pantheon environment locally using Lando:-

  1. Create an empty folder, open it in the terminal, and run the command “lando init”.
  2. On running the above command, you will encounter certain questions such as “From where should we get your app’s codebase?”, “Enter a Pantheon machine token”, and “Which site?”.

When entering the Pantheon machine token, make sure you have one. If you don’t, follow the instructions stated     below to get one:-

  • Login to your Pantheon account, visit your profile, and click on manage tokens (/personal-settings/machine-tokens).
  • To generate a new token, click on “add machine token.”Enter the desired name of the token, click on save, and you will have the token generated.  Note:- while running lando init,  “Which site” 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 “From where should we get your app’s codebase?”, select Pantheon.

3. In the next step, run Lando pull.

4. Finally, run lando start, and you will have your website ready.

FOUND THIS USEFUL? SHARE IT

Leave a Reply

Your email address will not be published. Required fields are marked *