Re: [google-appengine] Is there anyway to locally test a GAE + Facebook?

2010-11-29 Thread Ikai Lan (Google)
Chris, good tips! One more thing: you can also bind to 0.0.0.0 to bind to
all addresses.   Here's a link on how to set up a reverse SSH tunnel

http://www.marksanborn.net/howto/bypass-firewall-and-nat-with-reverse-ssh-tunnel/

You don't need a beefy computer for this. I have a cheapie Slicehost
instance that I use for all sorts of general purpose number crunching where
I need root, but I've done this before on a shared VPS like Site5.com with
no problems.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Tue, Nov 23, 2010 at 9:46 AM, Chris Copeland  wrote:

> You need a publicly accessible IP that Facebook's servers can hit to load
> the contents of your canvas page.  (127.0.0.1 is a special loopback address
> that is only valid on your computer.)
>
> I suggest using a service like DynDNS to register a host name like
> myapp.homeip.net and then use their tools to automatically update DNS
> records with your current IP as it changes (assuming you don't have a
> static, public IP for your dev machine).  Then update your Facebook app
> settings to point to this host name.
>
> If you are behind a firewall/NAT you will need to make a hole in that
> and/or configure port forwarding.
>
> When you start your local server you will need to bind it to your LAN
> address instead of loopback.  Eg. "-a 192.168.1.1"
>
> I have also found it useful to create two separate Facebook apps.  One for
> testing where it points to your dev machine and one for production that
> points to Google.
>
> -Chris
>
>
> On Tue, Nov 23, 2010 at 11:09 AM, nacho  wrote:
>
>> This is more a facebook apps question, but i would like if some gae
>> developers have experience doing this.
>>
>> I need to develop a Facebook app, and i want to do my back in gae and
>> my front in gwt. Easy task.
>>
>> My question is this: how can i locally test my fb app?
>>
>> My app must run on Facebook app's canvas (ie: iframe). So i created a
>> new app, put a app_id and in the canvas url the following:
>> http://127.0.0.1/MyApp.html
>>
>> But when i go to apps.facebook.com/myapp i get a blank page. I think
>> that i can't test locally, so i have to deploy to appengine and put my
>> appengine url in the facebook canvas url. But every deploy takes me
>> 4 / 8 minutes :(
>>
>> Is there any way to locally test my fb app using gae?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google App Engine" group.
>> To post to this group, send email to google-appeng...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-appengine+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Is there anyway to locally test a GAE + Facebook?

2010-11-23 Thread Chris Copeland
You need a publicly accessible IP that Facebook's servers can hit to load
the contents of your canvas page.  (127.0.0.1 is a special loopback address
that is only valid on your computer.)

I suggest using a service like DynDNS to register a host name like
myapp.homeip.net and then use their tools to automatically update DNS
records with your current IP as it changes (assuming you don't have a
static, public IP for your dev machine).  Then update your Facebook app
settings to point to this host name.

If you are behind a firewall/NAT you will need to make a hole in that and/or
configure port forwarding.

When you start your local server you will need to bind it to your LAN
address instead of loopback.  Eg. "-a 192.168.1.1"

I have also found it useful to create two separate Facebook apps.  One for
testing where it points to your dev machine and one for production that
points to Google.

-Chris

On Tue, Nov 23, 2010 at 11:09 AM, nacho  wrote:

> This is more a facebook apps question, but i would like if some gae
> developers have experience doing this.
>
> I need to develop a Facebook app, and i want to do my back in gae and
> my front in gwt. Easy task.
>
> My question is this: how can i locally test my fb app?
>
> My app must run on Facebook app's canvas (ie: iframe). So i created a
> new app, put a app_id and in the canvas url the following:
> http://127.0.0.1/MyApp.html
>
> But when i go to apps.facebook.com/myapp i get a blank page. I think
> that i can't test locally, so i have to deploy to appengine and put my
> appengine url in the facebook canvas url. But every deploy takes me
> 4 / 8 minutes :(
>
> Is there any way to locally test my fb app using gae?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to google-appeng...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Is there anyway to locally test a GAE + Facebook?

2010-11-23 Thread nacho
This is more a facebook apps question, but i would like if some gae
developers have experience doing this.

I need to develop a Facebook app, and i want to do my back in gae and
my front in gwt. Easy task.

My question is this: how can i locally test my fb app?

My app must run on Facebook app's canvas (ie: iframe). So i created a
new app, put a app_id and in the canvas url the following:
http://127.0.0.1/MyApp.html

But when i go to apps.facebook.com/myapp i get a blank page. I think
that i can't test locally, so i have to deploy to appengine and put my
appengine url in the facebook canvas url. But every deploy takes me
4 / 8 minutes :(

Is there any way to locally test my fb app using gae?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appeng...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.