We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a189189 commit 993e070Copy full SHA for 993e070
README.md
@@ -14,6 +14,7 @@ The following flags are a list of all the currently supported options that can b
14
- **SSH_KEY** : Private SSH deploy key for your repository base64 encoded (requires write permissions for pushing)
15
- **WEBROOT** : Change the default webroot directory from `/var/www/html` to your own setting
16
- **ERRORS** : Set to 1 to display PHP Errors in the browser
17
+ - **SHORT_TAG** : Set to 1 to enable PHP SHORT_TAG
18
- **TEMPLATE_NGINX_HTML** : Enable by setting to 1 search and replace templating to happen on your code
19
- **HIDE_NGINX_HEADERS** : Disable by setting to 0, default behaviour is to hide nginx + php version in headers
20
- **PHP_MEM_LIMIT** : Set higher PHP memory limit, default is 128 Mb
scripts/start.sh
@@ -49,6 +49,13 @@ else
49
echo php_flag[display_errors] = on >> /etc/php5/php-fpm.conf
50
fi
51
52
+# Enable PHP short tag or not
53
+if [[ "$SHORT_TAG" != "1" ]] ; then
54
+ echo php_flag[short_open_tag] = off >> /etc/php5/php-fpm.conf
55
+else
56
+ echo php_flag[short_open_tag] = on >> /etc/php5/php-fpm.conf
57
+fi
58
+
59
# Display Version Details or not
60
if [[ "$HIDE_NGINX_HEADERS" == "0" ]] ; then
61
sed -i "s/server_tokens off;/server_tokens on;/g" /etc/nginx/nginx.conf
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments