Skip to content

Commit 0330a4c

Browse files
Config files for flexible/{mailgun,mailjet}.
Also, fix a tiny bug in FileUtil.php where occaisionally the { character appears in file names. It didn't cause anything to fail, but it's just scary.
1 parent aa1ad6f commit 0330a4c

File tree

15 files changed

+2879
-187
lines changed

15 files changed

+2879
-187
lines changed

appengine/flexible/mailgun/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Mailgun PHP Sample Application for App Engine Flexible Environment.
2+
3+
## Description
4+
5+
The sample code lives in [the standard directory](../../standard/mailgun).
6+
Only two configuration files differ: `app.yaml` and `nginx-app.conf`.
7+
8+
Copy `app.yaml` and `nginx-app.conf` into [that directory](../../standard/mailgun),
9+
then follow the instructions in the [README](../../standard/mailgun/README.md).
10+
11+
## Contributing changes
12+
13+
* See [CONTRIBUTING.md](../../../CONTRIBUTING.md)
14+
15+
## Licensing
16+
17+
* See [LICENSE](../../../LICENSE)
18+
19+

appengine/flexible/mailgun/app.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
runtime: php
2+
vm: true
3+
4+
runtime_config:
5+
document_root: .
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
location / {
2+
# try to serve file directly, fallback to front controller
3+
try_files $uri /index.php$is_args$args;
4+
}

appengine/flexible/mailjet/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Mailjet PHP Sample Application for App Engine Flexible Environment.
2+
3+
## Description
4+
5+
The sample code lives in [the standard directory](../../standard/mailjet).
6+
Only two configuration files differ: `app.yaml` and `nginx-app.conf`.
7+
8+
Copy `app.yaml` and `nginx-app.conf` into [that directory](../../standard/mailjet),
9+
then follow the instructions in the [README](../../standard/mailjet/README.md).
10+
11+
## Contributing changes
12+
13+
* See [CONTRIBUTING.md](../../../CONTRIBUTING.md)
14+
15+
## Licensing
16+
17+
* See [LICENSE](../../../LICENSE)
18+
19+

appengine/flexible/mailjet/app.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
runtime: php
2+
vm: true
3+
4+
runtime_config:
5+
document_root: .
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
location / {
2+
# try to serve file directly, fallback to front controller
3+
try_files $uri /index.php$is_args$args;
4+
}

appengine/standard/mailgun/composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
"require": {
33
"silex/silex": "^1.3",
44
"mailgun/mailgun-php": "~2.0",
5-
"php-http/guzzle6-adapter": "^1.0"
5+
"php-http/guzzle6-adapter": "^1.0",
6+
"symfony/yaml": "^3.1"
67
},
78
"require-dev": {
8-
"symfony/browser-kit": "^3.0"
9+
"symfony/browser-kit": "^3.0",
10+
"google/cloud-tools": "^0.3.0",
11+
"paragonie/random_compat": "^2.0"
912
}
1013
}

0 commit comments

Comments
 (0)