Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fastify inside GCP App Engine Standard #1263

Closed
lgertel opened this issue Nov 23, 2018 · 3 comments
Closed

Fastify inside GCP App Engine Standard #1263

lgertel opened this issue Nov 23, 2018 · 3 comments
Labels
question General question about the project

Comments

@lgertel
Copy link

lgertel commented Nov 23, 2018

Hello, I have a working application using fastify inside GCP using Docker containers and Flexible environment.

I'm trying to test inside flexible but it doesn't works....
It's a simple application.

const Fastify = require('fastify')
const http = require('http')

const serverFactory = (handler, opts) => {
  const server = http.createServer((req, res) => {
    handler(req, res)
  })

  return server
}

const fastify = Fastify({ serverFactory })

fastify.get('/', (req, reply) => {
  reply.send({ hello: 'world' })
})

fastify.listen(8080)

My app doesn't responds when inside App Engine Standard.
Anyone working in GCP to help me?
Thanks

@lependu
Copy link
Contributor

lependu commented Nov 23, 2018

I know very little about GCP and Flexible, but if it runs inside docker container I suspect it should be:

fastify.listen(8080, '0.0.0.0')

@lgertel
Copy link
Author

lgertel commented Nov 23, 2018

@lependu awesome my friend! Working with all kind of AppEngine env's now.
Thanks!

@lgertel lgertel closed this as completed Nov 23, 2018
cemremengu added a commit that referenced this issue Nov 23, 2018
Per #1263 . This question has come up multiple times so I think adding a note can be helpful.
@delvedor delvedor added the question General question about the project label Nov 23, 2018
mcollina pushed a commit that referenced this issue Nov 23, 2018
* Update README.md

Per #1263 . This question has come up multiple times so I think adding a note can be helpful.

* Flip the sentence

* Update to include security risks and links

* Emphasize the notes section
@sauravexodus
Copy link

sauravexodus commented Nov 22, 2020

I know very little about GCP and Flexible, but if it runs inside docker container I suspect it should be:

fastify.listen(8080, '0.0.0.0')

This saved me! I was using NestJS with Fastify and spent hours on the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General question about the project
Projects
None yet
Development

No branches or pull requests

4 participants