Archived video

This video is archived and won't be updated. We're keeping it online for now as a courtesy.

Drupalize.Me Demo Sites on Acquia Dev Desktop

Video loading...

  • 0:02
    Drupalize.Me Demo Sites with Acquia Dev Desktop 2
  • 0:04
    In this tutorial, I will show you how to use Acquia Dev Desktop 2
  • 0:08
    to set up a local Drupal environment
  • 0:10
    and import code and database downloads
  • 0:13
    from a particular lesson on Drupalize.Me.
  • 0:15
    One thing to note, is that at the end of each lesson
  • 0:19
    the trainer creates a database snapshot and saves a compressed file
  • 0:24
    containing all of the files for the Drupal site.
  • 0:27
    In the Downloads section of a tutorial
  • 0:30
    is where you can find the Base Drupal files,
  • 0:32
    and the Drupal installation database for a particular video tutorial.
  • 0:37
    If you want to check your work, or get a closer look
  • 0:40
    at the code and configuration changes performed in a given tutorial,
  • 0:44
    these downloads are provided so that you can do just that.
  • 0:49
    And, just note that you'll need to do this for each lesson.
  • 0:53
    Now, once you get the hang of it, it's not such a big deal,
  • 0:56
    but the initial steps can take some learning,
  • 0:59
    so let's dive in.
  • 1:00
    The first thing we want to do is download the Drupal Base files,
  • 1:05
    or the Base Drupal files, as they're described here,
  • 1:08
    and the Drupal installation database.
  • 1:10
    These might be labelled something slightly different,
  • 1:12
    but basically what you're looking for is the files download
  • 1:16
    and the database dump.
  • 1:18
    So that's what we're going to do.
  • 1:20
    I'm going to click on each of these, and save them to my site directory,
  • 1:24
    and I've got a multiple domains, kind of container folder all set to go
  • 1:28
    And I'm going to go ahead and save them to those locations.
  • 1:31
    I'm saving them to my site's folder
  • 1:33
    because that's where Acquia Dev Desktop expects all of my websites to be.
  • 1:38
    And that's where it's serving from.
  • 1:40
    So, I'm going to go ahead, and pop over to Finder.
  • 1:43
    And here is my Drupal installation files,
  • 1:46
    my Drupal Base files is this .zip file.
  • 1:50
    And the database dump has this .sql and this .gz extension.
  • 1:56
    Now, these will be named something unique based on the lesson,
  • 2:01
    but what you're looking for is the database dump has the .sql and the .gz.
  • 2:06
    And the Drupal Base files has this .zip.
  • 2:10
    So first thing I need to do is expand the Drupal files.
  • 2:14
    So I'm going to double-click on this configapache.zip file,
  • 2:18
    and it's going to expand that.
  • 2:19
    And I've got my docroot file now, and inside that are all my Drupal files.
  • 2:25
    I don't need to do anything to the SQL file.
  • 2:27
    The Acquia Dev Desktop importer
  • 2:29
    will know what to do with this compressed format.
  • 2:32
    So now I'm going to pop over to Acquia Dev Desktop,
  • 2:35
    and I'm going to click on this "Get Started" link.
  • 2:37
    This window might already be open for you
  • 2:40
    if this is the first time you're opening Dev Desktop.
  • 2:42
    And I'm going to choose this middle option here,
  • 2:45
    "Start with an existing Drupal site located on my computer".
  • 2:48
    Since we've downloaded the Base files to our computer,
  • 2:50
    this is the option that pertains to us.
  • 2:53
    Now I need to tell Acquia Dev Desktop where the codebase is,
  • 2:57
    and where the database is.
  • 2:59
    And this codebase folder is our Drupal Base files.
  • 3:02
    So I'm going to go ahead and click "change",
  • 3:04
    and I'm just going to pop up one level here,
  • 3:08
    and select this docroot.
  • 3:09
    So the docroot is the directory that was created
  • 3:13
    when we expanded this configapache.zip.
  • 3:15
    So I'm going to select that and click "Open".
  • 3:17
    Now I have the full path to my site's folder,
  • 3:21
    that's located in my "home" folder in sites multiple domains docroot.
  • 3:26
    This will be different based on where you save your files,
  • 3:29
    but this is just an example that I'm using,
  • 3:32
    and you're welcome to copy it.
  • 3:33
    I'm going to change the local site name to "multiple domains".
  • 3:38
    And this is just because this is part of the lesson name,
  • 3:41
    and I'm just using it so that I can remember what it is.
  • 3:44
    A little bit easier.
  • 3:45
    But you can name it whatever you like,
  • 3:47
    whatever pertains to the lesson that you're walking through.
  • 3:51
    Now the PHP, I'm going to leave the version as-is,
  • 3:54
    but certainly if there's a lesson that requires a higher version of PHP,
  • 3:59
    you can go ahead and select it here.
  • 4:01
    For the "Database" option,
  • 4:03
    I'm going to "Start with a MySQL database dump file".
  • 4:06
    When I select that,
  • 4:08
    now I have an opportunity to tell Acquia Dev Desktop
  • 4:11
    where that dump file is located.
  • 4:12
    So I'll click "Browse", and I just need to pop up one level here.
  • 4:16
    And I'm going to select this .sql, .gz file.
  • 4:21
    So that's my database dump file.
  • 4:23
    And it's OK that it's compressed.
  • 4:25
    I'll click "open", and I'm going to leave everything else as-is.
  • 4:29
    And click "OK".
  • 4:30
    It's creating a database,
  • 4:32
    and it's importing the data into that database.
  • 4:35
    It's also editing the host file on your computer.
  • 4:38
    So if your host file happens to be locked, or has really stringent permissions,
  • 4:42
    you're going to need to loosen that up, and unlock that file first
  • 4:45
    before this will work. It will choke if it's locked.
  • 4:48
    I'll include some instructions in the description of this tutorial,
  • 4:51
    if you get stuck with that.
  • 4:53
    So, we're all set to go.
  • 4:55
    I'm going to click on this "Local site" link,
  • 4:56
    and you'll notice it's set up a local domain so multiple-domains.dd,
  • 5:03
    and it's using this port of 8083.
  • 5:06
    So, that's all done behind the scenes for you.
  • 5:08
    I can just click on this link.
  • 5:10
    Wait a moment.
  • 5:13
    And now you have a Drupal site, just like the one in the Drupalize.Me tutorial,
  • 5:17
    with all of the database and code changes that were done in that lesson.
  • 5:23
    The username and password
  • 5:24
    is most likely going to be "admin" and "admin".
  • 5:27
    If you have trouble logging into a local site set up by a trainer,
  • 5:31
    go ahead and contact Support,
  • 5:33
    or you can use a Drush command to reset the admin password.
  • 5:37
    I'm going to go ahead and log in.
  • 5:39
    And now we're all logged in, and ready to go.
  • 5:42
    So, you're going to want to repeat this process for each lesson.
  • 5:45
    In the next lesson you could just click this plus sign here,
  • 5:49
    and you want to "Import a local Drupal site".
  • 5:53
    You'll once again add the codebase folder.
  • 5:56
    Give the local site a name.
  • 5:59
    And, again select that "start with a MySQL database dump file",
  • 6:03
    and go through the same steps over again
  • 6:06
    for the next lesson.
  • 6:07
    Whether or not you want to keep each site,
  • 6:09
    for each lesson is totally up to you.
  • 6:11
    You can destroy them, and re-import them at will.
  • 6:15
    So that's all up to you,
  • 6:17
    but this is how you can set up a local site on your computer
  • 6:21
    so that you can walk through the steps in the lesson using Acquia Dev Desktop 2.
Loading ...

Drupalize.Me Demo Sites with Acquia Dev Desktop 2

Loading...

In this tutorial, you will learn how to use Acquia Dev Desktop 2 to get a Drupalize.Me tutorial demo site up and running. You will learn how to import a Drupal codebase and database containing a finished site for an individual tutorial on Drupalize.Me. This will enable you to walk through the lesson and see what was accomplished on the site during the lesson.

Additional resources: