File tree Expand file tree Collapse file tree 8 files changed +344
-7
lines changed Expand file tree Collapse file tree 8 files changed +344
-7
lines changed Original file line number Diff line number Diff line change
1
+ # EditorConfig is awesome: http://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ [* ]
7
+ charset = utf-8
8
+ end_of_line = lf
9
+ indent_size = 4
10
+ indent_style = tab
11
+ insert_final_newline = true
12
+ trim_trailing_whitespace = true
13
+
14
+ [* .yaml ]
15
+ indent_size = 2
16
+ indent_style = space
17
+
18
+ [* .json ]
19
+ indent_size = 2
20
+ indent_style = space
Original file line number Diff line number Diff line change
1
+ * ~
2
+ * .amp.html
3
+ .cache
4
+ * .class
5
+ crash.log
6
+ dist /
7
+ .DS_Store
8
+ * .env
9
+ * .gz
10
+ .idea /
11
+ .jekyll-metadata
12
+ node_modules /
13
+ * .pyc
14
+ .sass-cache /
15
+ _site /
16
+ tmp /
17
+ _tmp /
18
+ * .tgz
19
+ venv /
20
+ .vscode /
21
+ * .zip
File renamed without changes.
Original file line number Diff line number Diff line change @@ -2,24 +2,26 @@ application: regexplanet-php
2
2
version : 1
3
3
runtime : php55
4
4
api_version : 1
5
-
5
+ env_variables :
6
+ COMMIT : dev
7
+ LASTMOD : dev
6
8
handlers :
7
9
- url : /robots.txt
8
10
static_files : www/robots.txt
9
11
upload : www/robots.txt
10
-
11
12
- url : /favicon.ico
12
13
static_files : www/favicon.ico
13
14
upload : www/favicon.ico
14
-
15
+ - url : /favicon.svg
16
+ static_files : www/favicon.svg
17
+ upload : www/favicon.svg
15
18
- url : /status.php
16
19
script : www/status.php
17
-
20
+ - url : /status.json
21
+ script : www/status.php
18
22
- url : /test.php
19
23
script : www/test.php
20
-
21
24
- url : /
22
25
script : www/index.php
23
-
24
26
- url : /phpinfo.php
25
27
script : www/phpinfo.php
Original file line number Diff line number Diff line change 2
2
#
3
3
# deploy php engine to Google AppEngine
4
4
#
5
+
6
+ set -o errexit
7
+ set -o pipefail
8
+ set -o nounset
9
+
10
+ YAML=./app.yaml
11
+ yq write --inplace $YAML env_variables.COMMIT $( git rev-parse --short HEAD)
12
+ yq write --inplace $YAML env_variables.LASTMOD $( date -u +%Y-%m-%dT%H:%M:%SZ)
13
+
5
14
/usr/local/google_appengine/appcfg.py --oauth2 update .
6
15
16
+ #
17
+ # restore committed values
18
+ #
19
+ yq write --inplace $YAML env_variables.COMMIT dev
20
+ yq write --inplace $YAML env_variables.LASTMOD dev
21
+
22
+
23
+
Original file line number Diff line number Diff line change 1
1
<?php
2
- header ("Location: http ://www.regexplanet.com/advanced/php/index.html " );
2
+ header ("Location: https ://www.regexplanet.com/advanced/php/index.html " );
3
3
exit ;
4
4
?>
Original file line number Diff line number Diff line change 1
1
<?php
2
+ date_default_timezone_set ('UTC ' );
2
3
3
4
$ retVal = array ("success " => True );
5
+ $ retVal ["message " ] = "OK " ;
6
+ $ retVal ["timestamp " ] = date ('c ' );
7
+ $ retVal ["commit " ] = getenv ("COMMIT " );
8
+ $ retVal ["lastmod " ] = getenv ("LASTMOD " );
9
+ $ retVal ["tech " ] = "PHP " . phpversion ();
4
10
5
11
$ retVal ["error_get_last() " ] = error_get_last ();
6
12
$ retVal ["error_reporting() " ] = error_reporting ();
You can’t perform that action at this time.
0 commit comments