mirror of
https://github.com/dokku/buildpack-nginx.git
synced 2025-06-25 18:10:47 +00:00
Initial version
This commit is contained in:
15
bin/compile
Normal file
15
bin/compile
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
apt-get update
|
||||
apt-get -y install nginx
|
||||
|
||||
BINDIR=$(dirname "$0")
|
||||
|
||||
if [[ ! -f $1/nginx.conf.erb ]]; then
|
||||
cp $BINDIR/../conf/nginx.conf.erb $1/nginx.conf.erb
|
||||
fi
|
||||
|
||||
if [[ ! -f $1/mime.types ]]; then
|
||||
cp $BINDIR/../conf/mime.types $1/mime.types
|
||||
fi
|
9
bin/detect
Normal file
9
bin/detect
Normal file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if [[ -f $1/.nginx ]]; then
|
||||
echo "nginx"
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
8
bin/release
Normal file
8
bin/release
Normal file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cat << EOF
|
||||
---
|
||||
default_process_types:
|
||||
web: erb $1/nginx.conf.erb > $1/nginx.conf && nginx -c /app/nginx.conf
|
||||
EOF
|
Reference in New Issue
Block a user