From 8d696e7c0b36d52067e24346749425c239699fbd Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Fri, 23 Sep 2016 10:34:56 +0100 Subject: [PATCH] rename file --- docs/scripting.md | 19 ------------------- docs/scripting_templating.md | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 19 deletions(-) delete mode 100644 docs/scripting.md diff --git a/docs/scripting.md b/docs/scripting.md deleted file mode 100644 index 3bb61b4..0000000 --- a/docs/scripting.md +++ /dev/null @@ -1,19 +0,0 @@ -### Scripting -There is often an occasion where you need to run a script on code to do a transformation once code lands in the container. For this reason we have developed scripting support. By including a scripts folder in your git repository and passing the __RUN_SCRIPTS=1__ flag to your command line the container will execute your scripts. Please see the [repo layout guidelines](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/repo_layout.md) for more details on how to organise this. - -### Using environment variables / templating -To set the variables pass them in as environment variables on the docker command line. -Example: -``` -sudo docker run -d -e 'YOUR_VAR=VALUE' richarvey/nginx-php-fpm -``` -You can then use PHP to get the environment variable into your code: -``` -string getenv ( string $YOUR_VAR ) -``` -Another example would be: -``` - -``` diff --git a/docs/scripting_templating.md b/docs/scripting_templating.md index e69de29..3bb61b4 100644 --- a/docs/scripting_templating.md +++ b/docs/scripting_templating.md @@ -0,0 +1,19 @@ +### Scripting +There is often an occasion where you need to run a script on code to do a transformation once code lands in the container. For this reason we have developed scripting support. By including a scripts folder in your git repository and passing the __RUN_SCRIPTS=1__ flag to your command line the container will execute your scripts. Please see the [repo layout guidelines](https://github.com/ngineered/nginx-php-fpm/blob/master/docs/repo_layout.md) for more details on how to organise this. + +### Using environment variables / templating +To set the variables pass them in as environment variables on the docker command line. +Example: +``` +sudo docker run -d -e 'YOUR_VAR=VALUE' richarvey/nginx-php-fpm +``` +You can then use PHP to get the environment variable into your code: +``` +string getenv ( string $YOUR_VAR ) +``` +Another example would be: +``` + +```