Thanks for posting your questions here. Happy to hear you're interested in 
trying Nodejs on Google App Engine. The Nodejs runtime on Google App Engine 
uses npm <https://docs.npmjs.com/> to package, install and run Nodejs 
servers. This requires the use of a package.json file to specify your 
application's dependencies and scripts 
<https://docs.npmjs.com/misc/scripts#path>.

When uploaded, the runtime will attempt to execute 
<https://cloud.google.com/nodejs/resources/runtime#application_startup> npm 
start which will look for and execute the start command specified in your 
package.json file. It commonly looks something like this:

"scripts": {
  "start": "node app.js"
}

For your use case, you could simply add the directory before app.js like so:

"scripts": {
  "start": "node src/app.js"
}

Feel free to review some of the linked material above and inspect the Hello 
World example <https://cloud.google.com/nodejs/getting-started/hello-world> 
to see it in practice. Hope this helps!

On Thursday, April 7, 2016 at 7:35:28 PM UTC-4, Bill Jones wrote:
>
>
> Hello,
>
> I am evaluating Google's App Engine. In an attempt to learn more about it, 
> I am trying to deploy an existing Node app. My app has a structure that 
> looks like this:
>
> /config
> /data
> /public
> /src
>   /views
>   app.js
> app.yaml
>
> My app is much larger. The main thing I'm trying to point out here is that 
> my app.js isn't in the root directory. My question is, how can I deploy 
> this app? Is there a setting in the app.yaml file I can set to point out 
> that my app is actually located in the "src" directory?
>
> I'd hate to have to restructure my entire app. 
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/27821b8a-a553-4884-b849-d84f10d80179%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine]... Bill Jones
    • [google-appen... 'Nicholas (Google Cloud Support)' via Google App Engine

Reply via email to