Code Monkey home page Code Monkey logo

heroku-buildpack-nginx-php's Introduction

Heroku Buildpack: Nginx + PHP

This is a Heroku Buildpack for running your own Nginx HTTP server with PHP on Heroku.

Versions

Nginx: 1.3.3
PHP: 5.4.5

Usage

Creating your own Nginx + PHP server is easy. You configure any application that currently runs on Nginx + PHP to easily run on Heroku with this buildpack. You need to add a _config directory to the root of your project and include three config files.

$ ls _config/
nginx.conf.erb   php-fpm.conf   php.ini
$ heroku create --buildpack http://github.com/travisj/heroku-buildpack-nginx-php
$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack... done
-----> Nginx/PHP app detected
-----> Installing Nginx
-----> Bundling Nginx v1.3.3
-----> Installing PHP
-----> Bundling PHP v5.4.5
-----> Installing boot script
-----> Done with compile
-----> Discovering process types
       Procfile declares types     -> (none)
       Default types for Nginx/PHP -> web

Config Files

The buildpack requires that you have three config files: nginx.conf.erb, php-fpm.conf and php.ini.

Example configs files are included in the examples directory, but you are free to make any PHP or Nginx config changes you want.

Contributing

Please send me pull requests for additional example configs and I would be happy to include them in this project.

Builds

In the builds directory you can find the scripts used to create the executables. If you need to build either with additional support, fork this project, update the build scripts and run:

$ ./builds/php 5.4.5
...
(available at http://travisj.herokuapp.com/output/fcb93b5c-89ce-4cd3-b8a3-aa34305d3cab)
...

Look for the url where this new build is available and update bin/compile with your build.

If this is your first time creating a build for Heroku, you will need to install Vulcan and run:

$ vulcan create APP_NAME

Please send a pull request if you are adding functionality that you think anyone would benefit from.

heroku-buildpack-nginx-php's People

Contributors

travisj avatar

Watchers

James Cloos avatar Eric Maicon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.