-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Style and licenses for appengine/express.
- Loading branch information
Showing
10 changed files
with
130 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
# Express -> Google App Engine | ||
|
||
This is a simple guide to running [expressjs](http://expressjs.com/) on Google App Engine. | ||
This is a simple guide to running [expressjs](http://expressjs.com/) on Google App Engine. | ||
|
||
1. [Create a new Express app](http://expressjs.com/starter/generator.html) | ||
|
||
2. Create an `app.yaml` in the root of your application with the following contents: | ||
|
||
```yaml | ||
runtime: nodejs | ||
vm: true | ||
env_variables: | ||
PORT: 8080 | ||
``` | ||
```yaml | ||
runtime: nodejs | ||
vm: true | ||
env_variables: | ||
PORT: 8080 | ||
``` | ||
3. Deploy your app. For convenience, you can use an npm script to run the command. Modify your `package.json` to include: | ||
|
||
```js | ||
"scripts": { | ||
"start": "node ./bin/www", | ||
"deploy": "gcloud preview app deploy app.yaml --set-default --project [project id]" | ||
} | ||
``` | ||
```js | ||
"scripts": { | ||
"start": "node ./bin/www", | ||
"deploy": "gcloud preview app deploy app.yaml --set-default --project [project id]" | ||
} | ||
``` | ||
|
||
At the terminal you can now run `npm run deploy` to deploy your application. | ||
At the terminal you can now run `npm run deploy` to deploy your application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters