Skip to content

A custom Heroku PHP buildpack, including ant, composer, new relic and nodejs support.

Notifications You must be signed in to change notification settings

eveo-dev/heroku-buildpack-php-columbo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Columbo PHP build pack

This is a Heroku build pack which includes:

  • Ant
  • Apache, including the following modules:
  • deflate
  • expires
  • headers
  • macro
  • rewrite
  • Composer
  • New Relic
  • NPM
  • PHP, including the following notable extensions:
  • apc
  • curl
  • mcrypt
  • memcached
  • mysql
  • mysqli
  • newrelic
  • pdo
  • pgsql
  • phar
  • soap
  • zip

This build pack should be used with taeram/heroku-buildpack-php-columbo-template.

Configuration

The Apache, PHP, PHP Extension and New Relic config files are bundled with the build pack itself, and can be found in the conf/ directory.

Pre-compiling binaries

First time setup

The Vulcan build script will, if you want, automatically upload the buildpack assets to S3 for you.

To enable this functionality, create an Amazon S3 bucket to hold your buildpack assets:

# Install Amazon S3 command line tools
sudo apt-get -y install s3cmd

# If you haven't already, sign up for an Amazon S3 account
# Go to your Account page, and click Security Credentials
# Grab your Access Key ID and Secret Access Key
s3cmd --configure
    # Enter your Access Key and Secret Key when asked
    # When asked if you want to Save Settings, answer Yes

# Create an S3 bucket for your buildpack assets
s3cmd mb s3://[bucket_name]

On your local development machine, create ./support/config.sh and add your S3 bucket name to it:

BUILDPACK_S3_BUCKET=[bucket_name]

Create and launch a build server:

sudo gem install vulcan
vulcan create [NAME]

Build all of the buildpack assets:

./support/vulcan.sh all

Updating the buildpack

You can choose any option offered by the ./support/vulcan.sh script.

For example, to compile just apache and newrelic:

./support/vulcan.sh apache newrelic

Hacking

To change this buildpack, fork it on Github. Push up changes to your fork, then create a test app with --buildpack and push to it.

Meta

This repo is a fork of heroku/heroku-buildpack-php, and includes code from heroku/heroku-buildpack-nodejs and heroku-buildpack-php-tyler.

About

A custom Heroku PHP buildpack, including ant, composer, new relic and nodejs support.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%