@@ -18,29 +18,6 @@ export_env_dir $3
18
18
19
19
# START CONFIG
20
20
21
- # Support end-user configured BUILDPACK_NGINX_VERSION, BUILDPACK_PHP_VERSION, BUILDPACK_WORDPRESS_VERSION,
22
- # BUILDPACK_S3_BUCKET, BUILDPACK_WORDPRESS_DIR environment variables. This way, end-users
23
- # can choose exactly which versions to run with. Requires user-env-compile for now,
24
- # but will continue to work when Heroku deprecates user-env-compile and ENV_DIR
25
- # appears to this script as a parameter.
26
-
27
- if [ -z " $BUILDPACK_NGINX_VERSION " ]; then
28
- BUILDPACK_NGINX_VERSION=1.4.2
29
- fi
30
-
31
- if [ -z " $BUILDPACK_PHP_VERSION " ]; then
32
- BUILDPACK_PHP_VERSION=5.5.2
33
- fi
34
-
35
- if [ -z " $BUILDPACK_WORDPRESS_VERSION " ]; then
36
- BUILDPACK_WORDPRESS_VERSION=3.9.1
37
- fi
38
-
39
- if [ -z " $BUILDPACK_S3_BUCKET " ]; then
40
- BUILDPACK_S3_BUCKET=heroku-buildpack-wordpress
41
- fi
42
-
43
-
44
21
# Prevent publishing if old environment variables set. This feature will be removed in the future
45
22
# and thus the "global names" used before will be for application use.
46
23
if [ -n " $NGINX_VERSION " ] || [ -n " $PHP_VERSION " ] || [ -n " $WORDPRESS_VERSION " ] || [ -n " $S3_BUCKET " ] || [ -n " $WORDPRESS_DIR " ]; then
@@ -87,6 +64,28 @@ if [ -n "$NGINX_VERSION" ] || [ -n "$PHP_VERSION" ] || [ -n "$WORDPRESS_VERSION"
87
64
exit 250
88
65
fi
89
66
67
+ # Support end-user configured BUILDPACK_NGINX_VERSION, BUILDPACK_PHP_VERSION, BUILDPACK_WORDPRESS_VERSION,
68
+ # BUILDPACK_S3_BUCKET, BUILDPACK_WORDPRESS_DIR environment variables. This way, end-users
69
+ # can choose exactly which versions to run with. Requires user-env-compile for now,
70
+ # but will continue to work when Heroku deprecates user-env-compile and ENV_DIR
71
+ # appears to this script as a parameter.
72
+
73
+ if [ -z " $BUILDPACK_NGINX_VERSION " ]; then
74
+ BUILDPACK_NGINX_VERSION=1.4.2
75
+ fi
76
+
77
+ if [ -z " $BUILDPACK_PHP_VERSION " ]; then
78
+ BUILDPACK_PHP_VERSION=5.5.2
79
+ fi
80
+
81
+ if [ -z " $BUILDPACK_WORDPRESS_VERSION " ]; then
82
+ BUILDPACK_WORDPRESS_VERSION=3.9.1
83
+ fi
84
+
85
+ if [ -z " $BUILDPACK_S3_BUCKET " ]; then
86
+ BUILDPACK_S3_BUCKET=heroku-buildpack-wordpress
87
+ fi
88
+
90
89
# END CONFIG
91
90
92
91
#
0 commit comments