Git Product home page Git Product logo

buildpack-nginx's Introduction

NGINX Buildpack for Dokku - Hosting static pages

This buildpack has been successfully run on Digital Ocean instances of Ubuntu 14.04 (Status: Jan 2015). It might also work with different configurations.

Purpose

buildpack-nginx provides a simple, low overhead way of hosting static pages and websites on Dokku. Just add the .env and .static file to the root directory of your website as described below.

Usage

  1. Add a file with the name .env in the root of your directory with the following content: export BUILDPACK_URL=https://github.com/florianheinemann/buildpack-nginx.git
  2. Add another, empty file called .static to your root directory of your web project. It signals that this buildpack shall be used
  3. Push your project to Dokku

All static files that you want to serve should be in the root directory of your repository. No need to use a seperate www folder. buildpack-nginx will automatically download the buildpack, download NGINX, compile it, and install it. The next time you push your project, the buildpack will reuse the precompiled binaries.

NGINX CONFIGURATION

Override default configuration by adding nginx.conf.erb in the root directory

Credits and License

buildpack-nginx is licensed under the CC0 1.0 Universal license and has been informed by many similar projects on the web

Florian Heinemann

buildpack-nginx's People

Contributors

890f2151c2be69c51db72017546d00fd avatar alecgorge avatar antoine-duchenet avatar btkostner avatar crispy1975 avatar downchuck avatar florianheinemann avatar j15e avatar jonbjornn avatar kmattimo avatar piranha avatar portokallidis avatar thomasyip avatar

Watchers

 avatar  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.