question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any guidance on deploying to GCP App Engine?

See original GitHub issue

I notice a lot of deploy options are mentioned on the help guide but I can’t help but notice GCP/GAE is missing. Is there any interest in possibly adding information about it or not?

So far what I’ve done is use react-create-app to make a very basic app structure. I then tried to deploy it via gcloud app deploy and it seems to run but then ends with the following output: image

I understand when deploying to production I’m supposed to use npm run build but I’m not sure how to deploy that to GAE either. Any help is appreciated.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
JLaferricommented, May 5, 2017

So I changed my package.json to read:

{
  "name": "fizzigg-web",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "react": "^15.5.4",
    "react-dom": "^15.5.4"
  },
  "devDependencies": {
    "react-scripts": "0.9.5"
  },
  "scripts": {
    "start": "serve -s build",
    "prestart": "npm install -g serve",
    "local": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }
}

My app.yaml reads:

# [START runtime]
runtime: nodejs
env: flex
# [END runtime]

# [START handlers]
handlers:
 - url: /
   static_files: build/index.html
   upload: build/index.html

 - url: /(.*)
   static_files: build/\1
   upload: build/(.*)
# [END handlers]

After that gcloud app deploy worked fine. Dunno if I did everything exactly correctly but the result appears successful. Thanks for guidance. Any other tips are appreciated.

0reactions
jlcastrillon91commented, Aug 16, 2018

Worked for me too, Thanks @JLaferri

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deploying to App Engine | Cloud Build Documentation
App Engine provides the gcloud app deploy command, which builds an image with your source code and deploys that image on App Engine....
Read more >
How to deploy and publish applications to Google App Engine
Google # AppEngine is a #serverless #PaaS (platform as a service) service that is offered by #Google on Google Cloud Platform.
Read more >
Deploy the same app to App Engine, Cloud Functions, and ...
Nebulous Google Cloud serverless & API sample applications → https://goo.gle/3qa6HSJIn this episode of Serverless Expeditions Extended, ...
Read more >
Set up server-side tagging with App Engine
This guide explains how to: Provision a tagging server on Google Cloud Platform (GCP) App Engine. Upgrade the tagging server to handle live...
Read more >
How do you host your website on Google App Engine?
Go to the App Engine dashboard on the Google Cloud Platform Console and press the Create button. · If you've not created a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found