This is a simple guide to running geddy on Google App Engine.
-
Create an
app.yamlin the root of your application with the following contents:runtime: nodejs vm: true api_version: 1 env_variables: PORT: 8080
-
Create a
server.jsthat contains the following code:var geddy = require('geddy'); geddy.start({ port: process.env.PORT || '3000' });
-
Run
npm install --save geddy -
Deploy! For convenience, you can modify your
package.jsonto use an npm script for deployment:"scripts": { ... "deploy": "gcloud preview app deploy app.yaml --set-default --project [project id]" }
At the terminal you can now run
npm run deployto deploy your application.