grunt-pagekite

0.2.0 • Public • Published

grunt-pagekite

Publish a local server to the internet via PageKite.

grunt.initConfig({
  pagekite: {
    options: {
      port: 3000,
      secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    },
    mykite: {
      kitename: 'your-kite.pagekite.me'
  }
});

Getting Started

Grunt ~0.4.1

You should be comfy with the grunt basics and npm so you can install this in your project

> npm install grunt-pagekite --save-dev

You'll also need a PageKite account.

Configure PageKite directly in your Gruntfile:

grunt.loadNpmTasks('grunt-pagekite');
 
grunt.initConfig({
  pagekite: {
    options: {
      port: 3000,
      secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
    },
    mykite: {
      kitename: 'your-kite.pagekite.me'
  }
});

Or point the Gruntfile at your PageKite configuration:

grunt.initConfig({
  pagekite: {
    mykite: {
      optfile: 'pagekite.rc'
    }
  }
});

There's an example configuration in pagekite.example.rc.

Examples

Check out Gruntfile.coffee for an example of starting an express server, then PageKite, then running tests against the server through the PageKite proxy.

Running Tests

You'll need to configure pagekite.example.json with your PageKite account:

> cp pagekite.example.json pagekite.json
> vi pagekite.json
> ...
> npm install
> npm test

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i grunt-pagekite

    Weekly Downloads

    2

    Version

    0.2.0

    License

    MIT

    Last publish

    Collaborators

    • hurrymaplelad