Giter Site home page Giter Site logo

souravzzz / heroku-buildpack-wordpress Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mchung/heroku-buildpack-wordpress

0.0 1.0 0.0 7.15 MB

heroku-buildpack-wordpress

Home Page: mchung.github.com/heroku-buildpack-wordpress/

Perl 13.52% Shell 86.48%

heroku-buildpack-wordpress's Introduction

Heroku buildpack: Wordpress

A Heroku buildpack for Wordpress.

Currently running:

Overview

Fork Wordpress on Heroku, add in your own themes and plugins, deploy to Heroku. Don't forget to enable the plugins for Heroku heroku-sendgrid and wpro.

Usage

Getting Started

$ git clone git://github.com/mchung/wordpress-on-heroku.git my-new-wp-blog
$ cd my-new-wp-blog
$ heroku create --stack cedar --buildpack http://github.com/mchung/heroku-buildpack-wordpress.git my-new-wp-blog
$ git push heroku master
...
-----> Heroku receiving push
-----> Fetching custom buildpack
-----> Wordpress app detected

$ heroku domains:add my-new-wp-blog.info
$ heroku open
# Will open the fresh instance in your browser

Using a custom domain name

$ heroku domains:add my-new-wp-blog.info

This buildpack is designed to work together with this specific Wordpress repo, which configures all the Heroku-specific details to get Wordpress running on Nginx, PHP-FPM, and MySQL.

Constraints

For a list of constraints and known issues, please check out the Wordpress on Heroku repo.

Caveat

Each time Wordpress is deployed, Heroku will fetch the latest buildpack from GitHub and execute the instructions in compile and deploy. In this case, the latest precompiled version of Nginx, PHP, and Wordpress are downloaded from my S3 bucket. Details are listed below.

Configuration

During deployment, the buildpack will copy over several configuration files in setup.

  • wp-content - Wordpress themes and plugins
  • wp-config.php - Wordpress configuration
  • nginx.conf.erb - Nginx configuration
  • php-fpm.conf - PHP-FPM configuration
  • php.ini - PHP configuration

You can hack on nginx.conf.erb, php-fpm.conf, and php.ini but only if you know what you're doing. For example, by default, you can view the PHP-FPM status page at /status.html. To remove the status page, remove the directive from nginx.conf.erb.

Support

The support directory also contains a handful of compilation and deployment scripts to automate several processes, which are currently used for maintenance and management.

  • package_nginx - Used to compile and upload the latest version of Nginx to S3.
  • package_php - Used to compile and upload the latest version of PHP to S3.
  • wordup - Helper script. Used to create and destroy instances of Wordpress on Heroku.

TODO

  • Automate vendor upgrades. Make it easy to keep in sync with latest Nginx, PHP, and Wordpress

Authors and Contributors

Marc Chung (@mchung)

heroku-buildpack-wordpress's People

Contributors

mchung avatar

Watchers

 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.