Heroku node.js app to Google cloud with Firebase

507 views
Skip to first unread message

Alexander Cohen

unread,
Aug 30, 2016, 6:04:03 PM8/30/16
to fireba...@googlegroups.com
Hello, I have a firebase app that uses some backend services written in node.js that live on heroku. I’m wondering if there is a tutorial of some kind of help docs that might point me in the right direction on how I could migrate the heroku app to Google Cloud.

regards,
Alex

Kato Richardson

unread,
Sep 1, 2016, 12:05:16 PM9/1/16
to Firebase Google Group
Hi Alexander,

I don't think there's anything to do to migrate. The only real differences I can think of are in the deploy process. The primary difference being that you deploy from your local file base rather than pushing to github to deploy.

This is where I learned Node.js with GCP and I highly recommend it as a primer: https://cloud.google.com/nodejs/

One caveat not given enough emphasis in the doc for me was that, during development, GCP creates a new instance each time you deploy (by default) and you get charged for all of them. To avoid this, you want to find the version number of your GAE instance:




And then deploy using this format:
gcloud app deploy --version 20160720t225848
But other than the general deploy process, and how you configure auto-scaling, everything runs pretty close to the same, in my opinion.

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2c4b63b3-be2b-4479-bb17-81e0fab3e451%40me.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Alexander Cohen

unread,
Sep 1, 2016, 1:23:38 PM9/1/16
to Kato Richardson' via Firebase Google Group, Firebase Google Group
Thanks Kato. I’ll read through all the info and try it out. Do you know if GCP instances are blocked form within China?

AC
On Thu, Sep 1, 2016 at 12:04 PM, Kato Richardson' via Firebase Google Group <fireba...@googlegroups.com> wrote:
Hi Alexander,

I don't think there's anything to do to migrate. The only real differences I can think of are in the deploy process. The primary difference being that you deploy from your local file base rather than pushing to github to deploy.

This is where I learned Node.js with GCP and I highly recommend it as a primer: https://cloud.google.com/nodejs/

One caveat not given enough emphasis in the doc for me was that, during development, GCP creates a new instance each time you deploy (by default) and you get charged for all of them. To avoid this, you want to find the version number of your GAE instance:




And then deploy using this format:
gcloud app deploy --version 20160720t225848
But other than the general deploy process, and how you configure auto-scaling, everything runs pretty close to the same, in my opinion.

☼, Kato
On Tue, Aug 30, 2016 at 2:31 PM, Alexander Cohen <naf...@me.com> wrote:
Hello, I have a firebase app that uses some backend services written in node.js that live on heroku. I’m wondering if there is a tutorial of some kind of help docs that might point me in the right direction on how I could migrate the heroku app to Google Cloud.

regards,
Alex

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2c4b63b3-be2b-4479-bb17-81e0fab3e451%40me.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
unknown
unknown

Kato Richardson

unread,
Sep 1, 2016, 2:07:34 PM9/1/16
to Firebase Google Group
Google has a full transparency report here. I can't add anything that you won't be able to read there, unfortunately.

On Thu, Sep 1, 2016 at 9:22 AM, Alexander Cohen <alexander...@gmail.com> wrote:
Thanks Kato. I’ll read through all the info and try it out. Do you know if GCP instances are blocked form within China?

AC
On Thu, Sep 1, 2016 at 12:04 PM, Kato Richardson' via Firebase Google Group <firebase-talk@googlegroups.com> wrote:
Hi Alexander,

I don't think there's anything to do to migrate. The only real differences I can think of are in the deploy process. The primary difference being that you deploy from your local file base rather than pushing to github to deploy.

This is where I learned Node.js with GCP and I highly recommend it as a primer: https://cloud.google.com/nodejs/

One caveat not given enough emphasis in the doc for me was that, during development, GCP creates a new instance each time you deploy (by default) and you get charged for all of them. To avoid this, you want to find the version number of your GAE instance:




And then deploy using this format:
gcloud app deploy --version 20160720t225848
But other than the general deploy process, and how you configure auto-scaling, everything runs pretty close to the same, in my opinion.

☼, Kato
On Tue, Aug 30, 2016 at 2:31 PM, Alexander Cohen <naf...@me.com> wrote:
Hello, I have a firebase app that uses some backend services written in node.js that live on heroku. I’m wondering if there is a tutorial of some kind of help docs that might point me in the right direction on how I could migrate the heroku app to Google Cloud.

regards,
Alex

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2c4b63b3-be2b-4479-bb17-81e0fab3e451%40me.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
unknown
unknown
Reply all
Reply to author
Forward
0 new messages