Drupal & MySQL Setup

Deploying to Heroku using the Heroku Button

You can deploy your own version of Drupal running on MySQL on Heroku platform in seconds using the Heroku button below:

Deploy

Deploying to Heroku using the Command Line

You can also deploy Drupal to Heroku using the command line:

  1. Clone the repository

    git clone https://github.com/technomile/Heroku-Drupal
    
  2. Create a Heroku application

    cd drupal
    heroku create
    
  3. Install the ClearDB plugin

    heroku addons:add cleardb:ignite
    
  4. Install the New Relic plugin

    heroku addons:add newrelic:wayne
    
  5. Install the SendGrid plugin

    heroku addons:add sendgrid:starter
    
  6. Deploy to Heroku

    git push heroku master
    
  7. Run the the application:

    • Open the application in a browser:

      heroku open
      

Installing a Local Version

You can also install Drupal on your local machine:

  1. Clone the repository

    git clone https://github.com/technomile/Heroku-Drupal
    
  2. Install the server dependencies

    cd drupal
    npm install
    
  3. Create a local database

    • Install and start MySQL on your local machine
    • Create a database called drupal
  4. Start the server

    wamp/xampp server
    
  5. Run the application

Deploying latest Drupal version & Plugins to Heroku using the Command Line

You can upgrade Drupal & Plugins to Heroku using the command line:

  1. Clone the repository (If already cloned then cd your APP_NAME and git pull)

    git clone git@heroku.com:YOUR_APP_NAME.git
    
    cd YOUR_APP_NAME
    
    git pull origin master
    
  2. Download latest Drupal version & plugins from here and unzip folder at your desktop.

  3. Copy all the folders from your unzip folder location "Heroku-Drupal-master" and overwrite inside your Heroku App folder at this location "YOUR_APP_NAME/".

  4. Deploy to Heroku using these three commands.

    git add .
    git commit -m "YOUR_COMMENT"
    git push heroku master

Drupal & PostgreSQL Setup

Deploying to Heroku using the Heroku Button

You can deploy your own version of Drupal running on PostgreSQL on Heroku platform in seconds using the Heroku button below:

Deploy

Deploying to Heroku using the Command Line

You can also deploy Drupal to Heroku using the command line:

  1. Clone the repository

    git clone https://github.com/technomile/Heroku-Drupal-PostgreSQL
    
  2. Create a Heroku application

    cd drupal
    heroku create
    
  3. Install the Heroku Postgres plugin

    heroku addons:add heroku-postgresql:hobby-dev
    
  4. Install the New Relic plugin

    heroku addons:add newrelic:wayne
    
  5. Install the SendGrid plugin

    heroku addons:add sendgrid:starter
    
  6. Deploy to Heroku

    git push heroku master
    
  7. Run the the application:

    • Open the application in a browser:

      heroku open
      

Installing a Local Version

You can also install Drupal on your local machine:

  1. Clone the repository

    git clone https://github.com/technomile/Heroku-Drupal-PostgreSQL
    
  2. Install the server dependencies

    cd drupal
    npm install
    
  3. Create a local database

    • Install and start PostgreSQL on your local machine
    • Create a database called drupal
  4. Start the server

    wamp/xampp server
    
  5. Run the application

Deploying latest Drupal version & Plugins to Heroku using the Command Line

You can upgrade Drupal & Plugins to Heroku using the command line:

  1. Clone the repository (If already cloned then cd your APP_NAME and git pull)

    git clone git@heroku.com:YOUR_APP_NAME.git
    
    cd YOUR_APP_NAME
    
    git pull origin master
    
  2. Download latest Drupal version & plugins from here and unzip folder at your desktop.

  3. Copy all the folders from your unzip folder location "Heroku-Drupal-PostgreSQL-master" and overwrite inside your Heroku App folder at this location "YOUR_APP_NAME/".

  4. Deploy to Heroku using these three commands.

    git add .
    git commit -m "YOUR_COMMENT"
    git push heroku master

How to find your AWS Access Key ID and Secret Access Key? How to Create S3 Bucket?

  1. Click here for getting your Access Key ID and Secret Access Key.

  2. Click here to learn how to create a S3 bucket on amazon.

Setup of the Amazon S3 Module

  1. Login to Drupal admin panel.

  2. On dashboard:
    • Visit admin/Modules then activate "AmazonS3","AWS SDK for PHP","Composer Manager" &"AWS SDK Libraries" for Drupal.

    • Verify that the AWS SDK can be loaded by visiting your site's status report at admin/reports/status; if the status reports indicates that the library cannot be loaded properly even after you verify that it is properly installed, clear all caches to ensure that the Libraries module uses the most up-to-date information.

    • Configure AWS SDK (You will need your two Security Credentials: Access Key ID andSecret Access Key. These are located in your account settings athttp://aws.amazon.com).

    • Configure your bucket settings at /admin/config/media/amazon.

    • Visit admin/config/media/file-system and set the Default download method to S3.

    • Add a field of type File or Image etc and set the Upload destination to Amazon S3 in the Field Settings tab.