WordPress & MySQL Setup

Deploying to Heroku using the Heroku Button

You can deploy your own version of WordPress 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 WordPress to Heroku using the command line:

  1. Clone the repository

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

    cd wordpress
    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 WordPress on your local machine:

  1. Clone the repository

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

    cd wordpress
    npm install
    
  3. Create a local database

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

    wamp/xampp server
    
  5. Run the application

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

You can upgrade WordPress & 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 WordPress version & plugins from here and unzip folder at your desktop.

  3. Copy these two folders "wp-admin" and "wp-includes" from your unzip folder location "Heroku-WordPress-master" and overwrite inside your Heroku App folder at this location "YOUR_APP_NAME/".

  4. Copy all the plugin folders from your desktop location "Heroku-WordPress-master/wp-content/plugins" and overwrite inside your Heroku App folder at this location "YOUR_APP_NAME/wp-content/plugins".

  5. Deploy to Heroku using these three commands.

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

WordPress & PostgreSQL Setup

Deploying to Heroku using the Heroku Button

You can deploy your own version of WordPress 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 WordPress to Heroku using the command line:

  1. Clone the repository

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

    cd wordpress
    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 WordPress on your local machine:

  1. Clone the repository

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

    cd wordpress
    npm install
    
  3. Create a local database

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

    wamp/xampp server
    
  5. Run the application

Deploying latest plugins to Heroku using the Command Line

You can upgrade 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 plugins from here and unzip folder at your desktop.

  3. Copy all the plugin folders from your desktop location "Heroku-WordPress-PostgreSQL-master/wp-content/plugins" and overwrite inside your Heroku App folder at this location "YOUR_APP_NAME/wp-content/plugins".

  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.

Amazon Web Services configuration for WordPress Media

  1. Login to WordPress admin panel.

  2. On dashboard:
    • Go to Plugins >> Installed Plugins

      Activate "Amazon Web Services" & "WP Offload S3" for WordPress & MySQL Setup.

      OR

      Activate "Amazon Web Services" & "Amazon S3 and CloudFront" for WordPress & PostgreSQL Setup.

    • Insert your Amazon S3 "Access Key ID" & "Secret Access Key" and click on "Save Changes" button.

    • Select your existing Bucket or create a new Bucket for storing WordPress Media.

    • Click on "Save Changes" button and your are done.

SendGrid configuration on WordPress

  1. Login to WordPress admin panel.

  2. On dashboard:
    • Go to Plugins >> Installed Plugins

    • Activate SendGrid and Swift Mailer plugins.

    • Go to Settings >> SendGrid.

    • Select Send Mail with as SMTP

    • Under Mail settings input the following fields

      • Input your Name
      • Input your Sending Address
      • Input your Reply Address
    • Click on Update Settings and you are done.