Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 855 Bytes

File metadata and controls

38 lines (27 loc) · 855 Bytes

Geddy -> Google App Engine

This is a simple guide to running geddy on Google App Engine.

  1. Create a new geddy app.

  2. Create an app.yaml in the root of your application with the following contents:

    runtime: nodejs
    vm: true
    api_version: 1
    env_variables:
      PORT: 8080
  3. Create a server.js that contains the following code:

    var geddy = require('geddy');
    
    geddy.start({
      port: process.env.PORT || '3000'
    });
  4. Run npm install --save geddy

  5. Deploy! For convenience, you can modify your package.json to 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 deploy to deploy your application.