Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 329e231

Browse files
author
Jamie Snape
committed
Add more comments and fix issue downloading images from an App Engine instance
1 parent 7dca72e commit 329e231

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
bower_components/
99
composer.lock
1010
composer.phar
11-
cron.yaml
1211
env/
1312
node_modules/
1413
site/

app.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,25 @@
1818
#=============================================================================
1919

2020
---
21+
# Update with the project id.
2122
application: your-appengine-project-id
2223
version: 1
2324
runtime: php55
2425
api_version: 1
2526
threadsafe: yes
2627

2728
handlers:
28-
- url: /(.*\.(css|gif|ico|jpeg|jpg|js|map|png))$
29+
- url: /favicon\.ico
30+
static_files: favicon.ico
31+
upload: favicon\.ico
32+
secure: always
33+
34+
- url: /(.*/(public|SwaggerUI)/.*\.(css|gif|ico|jpeg|jpg|js|map|png))$
2935
static_files: \1
3036
upload: .*\.(css|gif|ico|jpeg|jpg|js|map|png)$
3137
secure: always
3238

39+
# Must enable the task scheduler module. The cron job is defined in cron.yaml.
3340
- url: /scheduler/run
3441
script: index.php
3542
login: admin
@@ -39,6 +46,7 @@ handlers:
3946
script: index.php
4047
secure: always
4148

49+
# Update with the bucket name and the project id. Also update php.ini with the bucket name.
4250
env_variables:
4351
midas_data_path: gs://your-cloudstorage-bucket/data
4452
midas_email_sender: no-reply@your-appengine-project-id.appspotmail.com
@@ -48,7 +56,7 @@ env_variables:
4856
skip_files:
4957
- ^(.*/)?.*/(\.DS_Store|\.htaccess|\.gitignore|CMakeLists\.txt|.*\.java)$
5058
- ^(.*/)?.*/\.sass-cache/.*
51-
- ^(.*/)?(\.coveralls\.yml|\.editorconfig|\.travis\.yml|AUTHORS|bower\.json|composer\.json|composer\.lock|composer\.phar|COPYRIGHT|CTestConfig\.cmake|cron-sample\.yaml|LICENSE|mkdocs\.yml|phpunit\.xml\.dist|README\.md|requirements\.txt|Vagrantfile)$
59+
- ^(.*/)?(\.codeclimate\.yml|\.coveralls\.yml|\.editorconfig|\.styleci\.yml|\.travis\.yml|AUTHORS|bower\.json|composer\.json|composer\.lock|composer\.phar|COPYRIGHT|CTestConfig\.cmake|LICENSE|mkdocs\.yml|phpunit\.xml\.dist|README\.md|requirements\.txt|Vagrantfile)$
5260
- ^(.*/)?core/configs/.*\.local\.ini$
5361
- ^(.*/)?(\.git|\.idea|\.vagrant|data|docs|env|log|provisioning|site|tests|tmp|utils)/.*
5462
- ^(.*/)?(core|modules/.*)/(database/(pgsql|sqlite)|tests)/.*

cron-sample.yaml renamed to cron.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
#=============================================================================
1919

2020
---
21-
# Enable the task scheduler module and rename this file "cron.yaml".
21+
# Must enable the task scheduler module.
2222
cron:
2323
- description: task scheduler job
2424
url: /scheduler/run
25-
schedule: every 10 minutes
25+
schedule: every 12 minutes

php.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
; Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.
22

3+
extension = "curl.so"
34
extension = "imagick.so"
5+
; Update with the bucket name. Also update app.yaml with the project id and bucket name.
46
google_app_engine.allow_include_gs_buckets = "your-cloudstorage-bucket"
57
google_app_engine.enable_functions = "php_sapi_name, phpversion"
68
session.cookie_httponly = On

0 commit comments

Comments
 (0)