`

Install DKAN on Pantheon

With this tutorial you will spin a new DKAN site on Pantheon.

Why Pantheon?

Pantheon is the fastest and easiest to maintain way to get up and running with DKAN. Once you’ve setup an account you can launch your DKAN portal for as little as $25 per month.

1. Automated DKAN updates

DKAN updates are sent right to your development site. You test them safely with no risk. Updates can be merged without coding or using a command line (after initial setup).

This image shows the Pantheon dashboard where new updates are applied: dkan-update

2. No-coding or Devops necessary

Pantheon takes care of all your hosting needs including backups, dev/test/prod instances, CLI access if you need it. DKAN supplies updates to your site. You can leverage all of the power of DKAN without code and without setting up or deploying servers.

4. $25 a month hosting

You can host your production-ready portal for as little as $25 a month.

Prerequisites

1. Knowledge of Git, command line tools, and developer tools

While anyone could follow the step by step instructions below it is helpful to have experience with git, cli tools, and developer tools and practices.

2. Create free Pantheon Account

Create your free Pantheon account to get started.

3. Install drush locally

Install drush to your local computer or server.

4. Add your ssh key to your Pantheon account

Add your ssh key to your Pantheon account.

It is recommended to install Terminus, Pantheon’s CLI tool.

Step by Step Process

1. Create DKAN site on Pantheon

Create your DKAN site using this form. This should only take several minutes.

Add your site name and url:

dkan-pantheon-1

2. Update your drush alias files

Once your site is created you need to update your local drush alias files.

2a) Download your drush alias files

Visit your Pantheon Dashboard and click “Drush Aliases”.

dkan-pantheon-3

Authenticate with Terminus
> terminus auth:login

If you are doing this for the first time you will need to generate a machine token. Just follow the link provided.

Update drush aliases

> terminus aliases

With either method you should be able to type:

> drush sa

see a list of aliases including .dev/.test/.prod instances of your site.

3. Change “Connection Mode” to SFTP

Go to your dev instance in Pantheon and click “SFTP”. This is to get around a bug in Pantheon that won’t let you install from the CLI while in Git mode.

4. Install DKAN

Run the installation command:

> drush si @mysitealias.dev dkan -vy

If you want to specify a root user or password you can add “–account-name” and “–account-pass” arguments. If you don’t specify the password you will have to look for it in the CLI output.

The installation process should take about 10 minutes.

5. Login to your new DKAN site!

Visit the url on your development instance dashboard in Panteon or type

> drush @mysitealias.dev uli

Follow-up Steps

1. Switch “Connection Mode” back to git

Go back to your dev instance and switch “Connection mode” back to git.

2. Move your database and code from dev to test and prod

See “Deploy to test and live” in Pantheon docs

3. Start adding to your DKAN site

Visit the DKAN Docs to see how to setup your site.

4. Prepare for launch!

See Pantheon docs on Going live.

5. Visit our slack channel

Visit us at our slack channel and say hello, ask questions, or join the community.