Deploying NumPy code in the Google cloud
Deploying GAE applications is pretty easy. For NumPy an extra configuration step is required, but that will take only minutes.
How to do it...
Let's create a new application.
Create a new application.
Create a new application with the launcher (File | New Application). Name it
numpycloud
. This will create a folder with the same name containing the following files:app.yaml
: YAML application configuration filefavicon.ico
: Icon imageindex.yaml
: Auto generated filemain.py
: Main entry point for the web application
Add NumPy to the libraries.
First, we need to let GAE know that we want to use NumPy. Add the following lines to the
app.yaml
configuration file in the libraries section:- name: NumPy version: "1.6.1"
The configuration file should have the following contents:
application: numpycloud version: 1 runtime: python27 api_version: 1 threadsafe: yes handlers: - url: /favicon\.ico static_files: favicon.ico upload: favicon\.ico - url: .* script...