Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for optional file custom-nginx-install #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* 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"`.
* custom-nginx-install - Optional File: executed where nginx otherwise would be installed via a default apt-get installation

## Environment Variables
* root - Optional: overrides root directory
8 changes: 6 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#!/usr/bin/env bash
set -e

apt-get update
apt-get -y install nginx
if [[ -e $1/${CUSTOM_NGINX_INSTALL:-custom-nginx-install} ]]; then
$1/${CUSTOM_NGINX_INSTALL:-custom-nginx-install} "$@"
else
apt-get update
apt-get -y install nginx
fi

BINDIR=$(dirname "$0")

Expand Down