Deploying apps to Google Cloud without local machine

0 views
Skip to first unread message

igorpavlov via StackOverflow

unread,
Mar 7, 2016, 11:05:08 AM3/7/16
to google-appengin...@googlegroups.com

Just set up my BitBucket repository to sync with my Google Cloud app. It seems that to deploy the Google Cloud app I need to execute commands from my local machine - which I obviously do not need as the initial repository is remote, I don't even need it on my local machine.

Is there a way to build the the app right from Google Cloud or even make this process automated on each git push?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/35848381/deploying-apps-to-google-cloud-without-local-machine

Bruno Hautzenberger via StackOverflow

unread,
Mar 8, 2016, 5:10:05 AM3/8/16
to google-appengin...@googlegroups.com

Yes. We use for that purpose a service called Codeship. https://codeship.com/

You can connect your Git Repository (Github, BitBucket,...) and run tests and deployment on every git push. Even to Google AppEngine. We do that every day.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/35848381/deploying-apps-to-google-cloud-without-local-machine/35864359#35864359

Bruno Hautzenberger via StackOverflow

unread,
Mar 8, 2016, 7:55:07 AM3/8/16
to google-appengin...@googlegroups.com

Yes. We use for that purpose a service called Codeship. https://codeship.com/

You can connect your Git Repository (Github, BitBucket,...) and run tests and deployment on every git push. Even to Google AppEngine. We do that every day.

EDIT Or you could use Google Cloud deployment Pipelines -> Doc

Vikram Tiwari via StackOverflow

unread,
Mar 9, 2016, 2:00:09 AM3/9/16
to google-appengin...@googlegroups.com

Yes you definitely can. But there needs to be some code present in your virtual machine. For a very simple deployment you can use a bash script which does the following:

  • Installs any prior dependencies git/node etc
  • Pulls your code from your repo (authentication can be managed via SSH keys)
  • Puts this code to a designated folder and installs the init service for that project
  • If rest is configured properly (endpoints, firewall etc), then your code should be up and running.

For the process of configuration and checking wether the code you are deploying is passing all the test, most people tend to use a continuos integration system. As @Bruno mentioned Codeship is one of them or you can find other open source and freely available ones.

Deploying untested code to a server is not a great idea, but hey, it is possible.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/35848381/deploying-apps-to-google-cloud-without-local-machine/35884897#35884897
Reply all
Reply to author
Forward
0 new messages