We are a team of 10 developers and want to develop PHP on GAE using the same SDK version from a remote server.
So, we want to install the GAE PHP SDK on the remote GCE instance once.
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,
export PATH="$PATH:/path/to/google_appengine/"
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?
Dear Nick,
Glad and thanks for your detailed reply. Well, we are not new to GAE/GCP. We are working in GAE for the past 4 years or so, to develop and deliver complex solutions for our clients running in GAE PHP..
Its high time we take some primitive measures to centralise all our DEVELOPMENTS and thus use remote server(instead of individual SDK w different versions). We also want to connect to github for versioning and also install jenkins in GCE server for continuous integrations.
So, as a first step all our 10+ developers want to use the same SDK running i n GCE instance to avoid to install each SDK in each of the developer's workstation. So, with that in mind, what is the best way to achieve it? For now ,we want it make it simple and of course secured.
So what is the best way to use?
1. Using Window manager
2. Or GCE firewalls?
Plz give a bit of more light(in detail on how to use/configure it, how many ports required, as we are 10+ developers in a team) on this for us to move on. And I am sure, it'll be definitely be useful for others seeing or trying to achieve , who sees this thread in future. Its really a pain for us to configure wo proper guidance on all these, as we are not network administrators.
Really appreciate ur esteemed help. Thnks fr ur support and kudos to Google support team.
Thanks in advance,
SN
adminuser@gaedev-box:~$ wget -O gae.zip https://storage.googleapis.com/appengine-sdks/featured/google_appengine_1.9.38.zip
adminuser@gaedev-box:~$ sudo mkdir /opt
adminuser@gaedev-box:~$ cd /opt
adminuser@gaedev-box:~$ sudo unzip ~/gae.zip
adminuser@gaedev-box:~$ sudo echo "export PATH=$PATH:/opt/google_appengine" > /etc/profile.d/gaepath.sh
normaluser@gaedev-box:~$ dev_appserver.py testapp
...
Starting module "default" running at: http://localhost:8080....
alias dev_appserver='dev_appserver.py --port=8081 --admin_port=8001 --php_executable_path=/usr/bin/php-cgi'