-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added --hot-reload flag to dev & deploy
Hot reloading is now only enabled for the services explicitly specified via the dev & deploy commands' new --hot-reload option. When this option is used, the respective commands are run in watch mode (i.e. assume the -w/--watch flag). Also: Started using HotReloadScheduler to prevent possible race conditions when multiple hot reload operations are in flight for the same module (something that HotReloadScheduler prevents by design).
- Loading branch information
Showing
67 changed files
with
1,479 additions
and
620 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
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,4 +1,5 @@ | ||
kubernetes: | ||
username: hello | ||
previous-usernames: | ||
- hello | ||
linkedModuleSources: [] | ||
linkedProjectSources: [] |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const express = require("express") | ||
|
||
const app = express() | ||
|
||
app.get("/hello", (req, res) => { | ||
res.json({message: "Hello from Node!"}) | ||
}) | ||
|
||
// This is the path GAE uses for health checks | ||
app.get("/_ah/health", (req, res) => { | ||
res.sendStatus(200) | ||
}) | ||
|
||
module.exports = { app } |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module: | ||
description: Node greeting service | ||
name: node-service | ||
type: container | ||
hotReload: | ||
sync: | ||
- target: /app/ | ||
services: | ||
- name: node-service | ||
command: [npm, start] | ||
hotReloadCommand: [npm, run, dev] | ||
ports: | ||
- name: http | ||
containerPort: 8080 | ||
ingresses: | ||
- path: /hello | ||
port: http | ||
healthCheck: | ||
httpGet: | ||
path: /_ah/health | ||
port: http |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.