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

Commit

Permalink
Add more comments and fix issue downloading images from an App Engine…
Browse files Browse the repository at this point in the history
… instance
  • Loading branch information
Jamie Snape committed Sep 30, 2015
1 parent 7dca72e commit 329e231
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
bower_components/
composer.lock
composer.phar
cron.yaml
env/
node_modules/
site/
Expand Down
12 changes: 10 additions & 2 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,25 @@
#=============================================================================

---
# Update with the project id.
application: your-appengine-project-id
version: 1
runtime: php55
api_version: 1
threadsafe: yes

handlers:
- url: /(.*\.(css|gif|ico|jpeg|jpg|js|map|png))$
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
secure: always

- url: /(.*/(public|SwaggerUI)/.*\.(css|gif|ico|jpeg|jpg|js|map|png))$
static_files: \1
upload: .*\.(css|gif|ico|jpeg|jpg|js|map|png)$
secure: always

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

# Update with the bucket name and the project id. Also update php.ini with the bucket name.
env_variables:
midas_data_path: gs://your-cloudstorage-bucket/data
midas_email_sender: no-reply@your-appengine-project-id.appspotmail.com
Expand All @@ -48,7 +56,7 @@ env_variables:
skip_files:
- ^(.*/)?.*/(\.DS_Store|\.htaccess|\.gitignore|CMakeLists\.txt|.*\.java)$
- ^(.*/)?.*/\.sass-cache/.*
- ^(.*/)?(\.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)$
- ^(.*/)?(\.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)$
- ^(.*/)?core/configs/.*\.local\.ini$
- ^(.*/)?(\.git|\.idea|\.vagrant|data|docs|env|log|provisioning|site|tests|tmp|utils)/.*
- ^(.*/)?(core|modules/.*)/(database/(pgsql|sqlite)|tests)/.*
Expand Down
4 changes: 2 additions & 2 deletions cron-sample.yaml → cron.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#=============================================================================

---
# Enable the task scheduler module and rename this file "cron.yaml".
# Must enable the task scheduler module.
cron:
- description: task scheduler job
url: /scheduler/run
schedule: every 10 minutes
schedule: every 12 minutes
2 changes: 2 additions & 0 deletions php.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
; Midas Server. Copyright Kitware SAS. Licensed under the Apache License 2.0.

extension = "curl.so"
extension = "imagick.so"
; Update with the bucket name. Also update app.yaml with the project id and bucket name.
google_app_engine.allow_include_gs_buckets = "your-cloudstorage-bucket"
google_app_engine.enable_functions = "php_sapi_name, phpversion"
session.cookie_httponly = On
Expand Down

0 comments on commit 329e231

Please sign in to comment.