Hey Dhandapani,

The commands you showed only start the Development server running, which 
emulates the production environment your app will run in. It runs your app 
as an HTTP server on the local machine (in this case, a Compute Engine 
(GCE) instance). You can use a browser on the instance (if you get a window 
manager running on the instance and connect via VNC 
<https://en.wikipedia.org/wiki/Virtual_Network_Computing> or RDP 
<https://en.wikipedia.org/wiki/Remote_Desktop_Protocol>), or you can expose 
port 8000 on the GCE machine, using GCE Firewalls 
<https://cloud.google.com/solutions/connecting-securely>, and run the 
dev_appserver.py command with --host 0.0.0.0 --port 8000 to allow 
connections from remote machines to the devserver process. If you use the 
Firewall to ensure that only your developers' computers can connect their 
browsers to the instance on that port, you'll be able to start the 
devserver and test. 

The problem of course with just using one machine is that only one of you 
can start and stop the devserver on that specific port at a time. You could 
have each your own port, but it starts to look like this is very 
over-engineered. The simplest solution, if you want to avoid the complexity 
above, is having each developer be responsible for keeping track of the 
version of the SDK they use to develop with. 

I hope this helps clarify things. Let me know if you have any questions as 
it seems you're new to the platform and we're here to help users no matter 
what stage of experience they're at. We're happy to assist!

Sincerely,

Nick
Cloud Platform Community Support

On Tuesday, July 5, 2016 at 7:18:56 AM UTC-4, Dhandapani Sattanathan wrote:
>
> Thanks Adam,
>
> I added the following line to each user's startup script
>
> export PATH="$PATH:/path/to/google_appengine/"
>
> Using SSH connection i opened the terminal.
> user@lamp-bafs:~$  mkdir gaedev
>
>
>
> user@lamp-bafs:~$ cd gaedev
>
> user@lamp-bafs:~$ wget -O gae.zip https:
> //storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip
>
> user@lamp-bafs:~$ unzip gae.zip
>
>
> user@lamp-bafs:~$ echo $PATH
>
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/php
>
> user@lamp-bafs:~$ export PATH="$PATH:/home/gaedev/google_appengine/"
>
> user@lamp-bafs:~$ echo $PATH
>
>
> user@lamp-bafs:~$ echo $PATH
>
> /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/bin/php:
> /home/gaedev/google_appengine
>
> user@lamp-bafs:~$ cp -r google_appengine/new_project_template testapp
>
> user@lamp-bafs:~$python google_appengine/dev_appserver.py testapp
>
> INFO 2016-06-22 05:00:00,836 sdk_update_checker.py:229] Checking for 
> updates to the SDK.WARNING 2016-06-22 05:00:02,159 simple_search_stub.py:
> 1146] Could not read search indexes from /tmp/appengine.new-project-
> template.user/search_indexesINFO 2016-06-22 05:00:02,170 api_server.py:205
> ] Starting API server at: http://localhost:37210INFO 2016-06-22 
> 05:00:02,177 dispatcher.py:197] Starting module "default" running at: 
> http://localhost:8080INFO 2016-06-22 05:00:02,179 admin_server.py:116] 
> Starting admin server at: http://localhost:8000
>
> After this I do not see the default browser opening. 
>
> Could you plz help us how to use remote appengine SDK(installed in this 
> GCE instance).All developers want to use one common SDk from this remote 
> machine?
> On Saturday, July 2, 2016 at 10:33:37 PM UTC+5:30, Adam (Cloud Platform 
> Support) wrote:
>>
>> Assuming your remote GCE instance is Linux, you can just install the SDK 
>> on the GCE instance as you would normally following the instructions for 
>> 'installing 
>> on Linux' 
>> <https://cloud.google.com/appengine/downloads#Google_App_Engine_SDK_for_PHP>.
>>  
>> I usually install under /opt eg. /opt/google_appengine.
>>
>> To ensure the SDK is in each user's PATH, add the following line to each 
>> user's startup script (eg. .bash_profile):
>>
>> export PATH="$PATH:/path/to/google_appengine/"
>>
>> On Friday, July 1, 2016 at 3:12:53 AM UTC-4, Dhandapani Sattanathan wrote:
>>>
>>> Hello,
>>>
>>>
>>>    1. 
>>>    
>>>    We are a team of 10 developers and want to develop PHP on GAE using 
>>>    the same SDK version from a remote server.
>>>    2. 
>>>    
>>>    So, we want to install the GAE PHP SDK on the remote GCE instance 
>>>    once.
>>>    3. 
>>>    
>>>    Subsequently, all developers will use that remote PHP SDK installed 
>>>    in that GCE instance.
>>>    
>>> This is to avoid installing or working in different versions of GAE SDK 
>>> in our individual local machines. We don't want to install in each of our 
>>> local machines, whenever there is a new Release of GAE SDK. We just want to 
>>> update once in GCE instances, with the new GAE SDK in one centralized 
>>> place, to ensure all developers develop the code using the same version of 
>>> GAE SDK. We also don't want to waste time to install SDK in each machine to 
>>> ensure consistency in development environments.
>>>
>>> In this context, can you please enlighten us to centralize our GAE SDK 
>>> in GCE development server
>>>
>>> Thanks very much in advance,
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/5ec14619-8708-4420-a4e8-c5294fd5bd00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine] H... Dhandapani Sattanathan
    • [google-appengi... 'Adam (Cloud Platform Support)' via Google App Engine
      • [google-app... Dhandapani Sattanathan
        • [google... 'Nick (Cloud Platform Support)' via Google App Engine
          • [go... Dhandapani Sattanathan
            • ... 'Adam (Cloud Platform Support)' via Google App Engine
              • ... Dhandapani Sattanathan

Reply via email to