
@amygdala
http://plus.google.com/+AmyUnruh
Google Cloud Platform Starter Pack allows developers from affiliated partners to receive $2,000 of credit - $1,000 for Google App Engine and $1,000 for Cloud Platform services like Cloud SQL.
Easy to deploy and manage your apps:
app.yaml
and php.ini
Useful links:
app.yaml
fileapplication: your-app-id version: one runtime: php api_version: 1 handlers: - url: /(.*\.(htm$|html$|css$|js$)) static_files: wordpress/\1 upload: wordpress/(.*\.(htm$|html$|css$|js$)) application_readable: true ... - url: /wp-admin/(.+) script: wordpress/wp-admin/\1 secure: always - url: /wp-cron.php script: wordpress/wp-cron.php login: admin - url: /wp-(.+).php script: wordpress/wp-\1.php - url: /(.+)?/? script: wordpress/index.php
A note about plugin installation...
<path_to_sdk>/dev_appserver.py --php_executable_path=<path_to_php-cgi54> .
Explore the App Engine Admin Console (dashboard, logs, task queues, versions and traffic splitting, and much more)
Google Cloud Platform Starter Pack allows developers from affiliated partners to receive $2,000 of credit - $1,000 for Google App Engine and $1,000 for Cloud Platform services including Cloud SQL.
Tasks are HTTP request handlers.
require_once 'google/appengine/api/taskqueue/PushTask.php'; use \google\appengine\api\taskqueue\PushTask; ... $task_params = ['message' => $message, 'to' => $people]; $task = new PushTask('/sms_notify.php', $task_params)->add(); $task->add();
require_once 'google/appengine/api/taskqueue/PushTask.php'; use \google\appengine\api\taskqueue\PushTask; ... $task_params = ['message' => $message, 'to' => $people]; $task = new PushTask('/sms_notify.php', $task_params)->add(); $task->add();
The /sms_notify
handler script:
<?php $message = $_POST['message']; $to = $_POST['to']; // in the handler, notify based on the params // ....
app.yaml
filehandlers: ... - url: /sms_notify script: sms_notify.php login: admin
- url: /(.+)_task script: /\1_task.php login: admin
add_action('publish_post', 'launchNotificationTasks'); add_action('save_post', 'schedulePublishTask');