1
0
mirror of https://github.com/dokku/buildpack-nginx.git synced 2025-10-07 11:14:34 +00:00

CHANGE to static compile

This commit is contained in:
Florian Heinemann
2014-11-06 17:29:41 -05:00
parent 51b16c2175
commit 5c959aaad6
5 changed files with 122 additions and 87 deletions

View File

@ -1,13 +1,8 @@
# NGINX Buildpack
Dokku buildpack: Static Nginx
================================
**Note**: This has only been tested with [dokku](https://github.com/progrium/dokku) - it may not work elsewhere.
For your static HTML site!
## Structure
* .nginx - File: its presence signals that this buildpack should be used
* www - Folder: holds all files to be served by nginx
* nginx.conf.erb - Optional File: overrides `conf/nginx.conf.erb`
* mime.types - Optional File: overrides `conf/mime.types`
* custom-build - Optional File: executes commands before build is finished. Note that this script does not run in the application root. To execute commands in the application root you must do `cd "$1"`.
Simply use this as the Dokku buildpack for your static repo and push to your Dokku server!
## Environment Variables
* root - Optional: overrides root directory
Make sure you have a file called `.static` in your root folder of your application.