Skip to content

Instantly share code, notes, and snippets.

@diorahman
Created August 1, 2012 21:38
Show Gist options
  • Save diorahman/3230990 to your computer and use it in GitHub Desktop.
Save diorahman/3230990 to your computer and use it in GitHub Desktop.
Kite Setup
**PAGE KITE**
1. ON THE SERVER
-> set the frontend, maybe you'll need screen or upstart
$ screen -list
$ screen
On the server
root@rezafaisal:~/kite# ./pagekite.py --clean --isfrontend --ports=12345 --domain=http:beta.kertasapp.com:dio10201
>>> Hello! This is pagekite.py v0.5.2d. [CTRL+C = Stop]
This is a PageKite front-end server.
- Listening on *:12345
Connecting to front-end x.x.x.x:x ...
~<> Flying: http://beta.kertasapp.com/
<< pagekite.py [flying] Kites are flying and all is well.
2. LOCALHOST (THE APPLICATION HOST)
-> localhost
./pagekite.py --clean --frontend=http:http:beta.kertasapp.com:12345 --service_on=http:beta.kertasapp.com:localhost:8000:dio10201
service running on port 8000
*upstart example http://kevin.vanzonneveld.net/techblog/article/run_nodejs_as_a_service_on_ubuntu_karmic/
@diorahman
Copy link
Author

On windows, you need to install python, and run the command as

python pagekite.py

The pagekite.py can be downloaded from: https://pagekite.net/downloads/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment