grunt-pagekite
v0.2.0
Published
Publish a local server to the internet via PageKite
Downloads
2
Maintainers
Readme
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